Browse Source

check path

master
zeus 2 years ago
parent
commit
b8a23332a5
  1. 5
      src-local/llo/new.js

5
src-local/llo/new.js

@ -1307,6 +1307,7 @@ SWARMLAB_STORAGE_PASSWORD=${service_password}
var services_path = './instance/'+service
var ENV_service_dir = services_path+'/'+service
var ENV_service_file_path = services_path+'/'+service+'/.env'
var ENV_service_file_path_div = services_path+'/'+service
var nn = {}
nn.data = 'Wait for service(s) to be available before executing a command'
io.emit('message_out', nn);
@ -1360,8 +1361,10 @@ SSH_PORT=
io.emit('message_out', n);
n.data = '...'
io.emit('message_out', n);
fs.writeFileSync(ENV_service_file_path, ENV_service_file);
create_project(service,service)
if (fs.existsSync(ENV_service_file_path_div)) {
fs.writeFileSync(ENV_service_file_path, ENV_service_file);
}
}).catch((err) => {
var n = {}
n.data = err.toString()

Loading…
Cancel
Save