mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-11 13:42:49 +01: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;
|
|
}
|
|
};
|