c9s / typeloy

typeloy is a meteor application deployment tool written in typescript.
MIT License
25 stars 8 forks source link

SystemD start/stop/reconfig command #46

Closed Testato closed 8 years ago

Testato commented 8 years ago

The following commands, for remote service management, do not work on SystemD typeloy stop typeloy start

Started TaskList: Stopping Application (linux)
[xxx] - Stopping app
[xxx] x Stopping app: FAILED
        -----------------------------------STDERR-----------------------------------
        stop: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused

The typeloy restart seems a working command, please check it also.

For the typeloy reconfig command, I tried to change the PORT in typeloy.json file and after read inside the VPS env-var but the port is not changed. Is this a correct test or it work on other settings ?

Testato commented 8 years ago

the problem is here: https://github.com/c9s/typeloy/blob/master/src/TaskBuilder/LinuxTaskBuilder.ts#L200

c9s commented 8 years ago

fixed.

Testato commented 8 years ago

tested, thanks

C:\Users\win10\Desktop\testapp>typeloy reconfig testapp
Found C:\Users\win10\Desktop\testapp\settings.json
Started TaskList: Reconfiguring Application (linux)
[xxxx] - Setting up environment variable file
[xxxx] - Setting up environment variable file: SUCCESS
[xxxx] - Restart testapp
[xxxx] - Restart testapp: SUCCESS
✔ Host xxxx
  ✔ Setting up environment variable file
  ✔ Restart testapp