yum install nodejs npm --enablerepo=epel
curl -L https://ghost.org/zip/ghost-latest.zip -o ghost.zip
unzip -uo ghost.zip -d /home/user/public_html
cd /home/user/public_html
npm start --production
http://:2368
Adding proxy in apache virtual host
ProxyRequests off
ProxyPass / http://127.0.0.1:2368/
To run ghost forever
cd /path/to/ghost/folder
sudo npm install -g pm2
echo "export NODE_ENV=production" >> ~/.profile
source ~/.profile
pm2 kill
pm2 start index.js --name ghost
┌──────────┬────┬──────┬───────┬────────┬─────────┬────────┬────────────┬──────────┐
│ App name │ id │ mode │ pid │ status │ restart │ uptime │ memory │ watching │
├──────────┼────┼──────┼───────┼────────┼─────────┼────────┼────────────┼──────────┤
│ ghost │ 0 │ fork │ 15823 │ online │ 1 │ 0s │ 7.953 MB │ disabled │
curl -L https://ghost.org/zip/ghost-latest.zip -o ghost.zip
unzip -uo ghost.zip -d /home/user/public_html
cd /home/user/public_html
npm start --production
http://
Adding proxy in apache virtual host
ProxyRequests off
ProxyPass / http://127.0.0.1:2368/
To run ghost forever
cd /path/to/ghost/folder
sudo npm install -g pm2
echo "export NODE_ENV=production" >> ~/.profile
source ~/.profile
pm2 kill
pm2 start index.js --name ghost
┌──────────┬────┬──────┬───────┬────────┬─────────┬────────┬────────────┬──────────┐
│ App name │ id │ mode │ pid │ status │ restart │ uptime │ memory │ watching │
├──────────┼────┼──────┼───────┼────────┼─────────┼────────┼────────────┼──────────┤
│ ghost │ 0 │ fork │ 15823 │ online │ 1 │ 0s │ 7.953 MB │ disabled │
Comments
Post a Comment