An ansible playbook to build ghost blog
OS Supported: Ubuntu
Important: This script will update your nodejs to a stable version
Install ansible in your machine and clone this repository.
Edit the inventory file with the host's ips you want to run sinopia on
Run:
ansible-playbook -i inventory playbook.yml -u <machine-user> -kK
Install ansible in your machine and clone this repository.
Run:
vagrant up
- Nodejs (latest stable)
- Npm
- Wget
- zip
- vim
- URL: http://localhost:2368/
- Instalation directory: /var/www/ghost (recommended by ghost tutorials)
- Create ghost user (required in ghost tutorials)
- Instead running with npm start --production, a script called forever.sh was created to start and stop ghost.
- Add forever.sh to cron so it can start ghost on every reboot
TODO: Improve the script when stoping
Start
$cd /var/www/ghost
$sudo ./forever.sh start
Stop
$cd /var/www/ghost
$sudo ./forever.sh stop