##License Script for installing the latest release of Ghost and the latest release of Node.JS Copyleft (C) Nicolas Simond - 2016
This script is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This script is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this script. If not, see http://www.gnu.org/licenses/gpl.txt
##About this script This script install the latest release of Ghost and the latest release of Node.JS on a Debian 8 server.
- Ghost
- Node.js
- NPM
- Grunt
- Forever
##Dependencies Included in the script
##Designed for Debian 8
##Installation
cd /tmp && wget --no-check-certificate https://raw.githubusercontent.com/stylersnico/ghost-installer/master/gh_installer.sh && chmod +x ./gh_installer.sh && ./gh_installer.sh
##Open Ghost to internet
If you don't want to use a nginx reverse proxy, edit the following file: /var/www/ghost/config.js
In the "Production" section, change the following:
host: '127.0.0.1',
to
host: '0.0.0.0',
And launch this command as ghost user:
cd /var/www/ghost/
forever stop index.js && NODE_ENV=production forever start index.js
Add this to your crontab for restarting your ghost blog at each boot:
@reboot NODE_ENV=production forever start /var/www/ghost/index.js