Install Ghost without Ghost-Cli

Pré requis :
- node v6 (à vérifier ici : https://docs.ghost.org/docs/install)
- mysql
Si vous effectuez une migration < 1.0.0, je vous conseil de faire un export via l'interface admin, et de rappatrier les datas sur la nouvelle installation. https://docs.ghost.org/docs/migrating-to-ghost-1-0-0#section-1-backup-your-content
1/ Télécharger les packages, Yarn & Ghost
curl -o- -L https://yarnpkg.com/install.sh | bash
curl -L https://ghost.org/zip/ghost-latest.zip -o ghost-latest.zip
2/ Unziper et init install
unzip ghost-latest.zip -d ghost && cd ghost
yarn install
3/ Configuration Mysql
mysql -u root -p
create database `ghost-db` character set = 'utf8';
create user 'ghost'@'localhost' identified by 'USER_DB_PASSWORD';
GRANT ALL PRIVILEGES ON `ghost-db`.* to `ghost`;
4/ Configuration ghost
vi config.production.json
{
"url": "VOTR_URL",
"server": {
"host": "127.0.0.1",
"port": VOTR_PORT
},
"database": {
"client": "mysql",
"connection": {
"host" : "127.0.0.1",
"user" : "ghost",
"password" : "USER_DB_PASSWORD",
"database" : "ghost-db"
}
},
"auth": {
"type": "password"
},
"paths": {
"contentPath": "content/"
},
"logging": {
"level": "info",
"rotation": {
"enabled": true
},
"transports": ["file", "stdout"]
}
}
5/ Initialiser la DB
npm install -g knex-migrator
NODE_ENV=production knex-migrator init
5/ Démarrer Ghost
NODE_ENV=production node index.js