mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 07:27:32 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			476 B
		
	
	
	
		
			JavaScript
		
	
	
	
		
			Vendored
		
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			476 B
		
	
	
	
		
			JavaScript
		
	
	
	
		
			Vendored
		
	
	
	
let fs = require('fs');
 | 
						|
 | 
						|
module.exports = {
 | 
						|
    activateCypressEnvFile() {
 | 
						|
        if (fs.existsSync('.env.cypress')) {
 | 
						|
            fs.renameSync('.env', '.env.backup');
 | 
						|
            fs.renameSync('.env.cypress', '.env');
 | 
						|
        }
 | 
						|
 | 
						|
        return null;
 | 
						|
    },
 | 
						|
 | 
						|
    activateLocalEnvFile() {
 | 
						|
        if (fs.existsSync('.env.backup')) {
 | 
						|
            fs.renameSync('.env', '.env.cypress');
 | 
						|
            fs.renameSync('.env.backup', '.env');
 | 
						|
        }
 | 
						|
 | 
						|
        return null;
 | 
						|
    }
 | 
						|
};
 |