Search…
ENGLISH
Always On function does not work.
​First of all, the Always-On function is only available for PREMIUM plan users. Please check your PLAN.
Closing the IDE does not terminate the container, but processes running in the terminal are terminated. To prevent this, run as a background process.
You can run it as a background process using the "nohup" command. Prepare an executable file (ex: a.out) to run them in a background process.
Enter the command
1
# nohup / absolute path / a.out &
Copied!
You can check whether it was executed by using the following command.
1
# ps -aux | grep a.ou
Copied!
Find the PID value with the ps command, then terminate the process with the kill command.
1
# ps -ef | grep a.out
2
# kill -TERM PID number
Copied!
※ Reference
The nohup command automatically creates a file named nohup.out.
This file records the output of commands run with nohup. If you do not want to create this file, you can print it to /dev/null.
1
# nohup echo hello> / dev / null
Copied!
If you are using a node app, you can simply run it as a background process using the forever command from the npm package.
install forever
1
$ npm install -g forever
Copied!
Run the app via the command below.
1
$ forever start app.js
Copied!
You can check whether it is executed with using the command below.
1
$ forever list
Copied!
Please refer to the forever usage for more details.
Last modified 3mo ago
Copy link