Browse Source

check path

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

Loading…
Cancel
Save