You are on page 1of 2

sudo apt-get update && sudo apt-get -y install curl git build-essential

sudo apt-get install python


sudo apt-get install nodejs
sudo apt-get install libapache2-mod-php7.2 php7.2 php7.2-common
git clone https://github.com/c9/core.git c9sdk
cd c9sdk
scripts/install-sdk.sh

node server.js -p 8080 -l 0.0.0.0 -a user:pass

JIka mengalami error run command berikut , jika tidak jgn dirun

git reset --hard


git fetch origin && git reset origin/HEAD--hard
scripts/install-sdk.sh

Cloud 9 Run 24 Hour command


sudo nano /lib/systemd/system/c9.service
# Run:
# - systemctl enable c9
# - systemctl {start,stop,restart} c9
#
[Unit]
Description=c9
After=syslog.target network.target

[Service]
Type=simple
ExecStart=/usr/bin/node /home/c9user/c9/server.js -a user:pass -w
Environment=NODE_ENV=production PORT=8080
User=user
Group=c9user
UMask=0002
Restart=on-failure

StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=c9

[Install]
WantedBy=multi-user.target

sudo systemctl enable c9.service


sudo systemctl daemon-reload
sudo service c9 start

You might also like