Files
mkdocs/docs/macos/node/ghost.md
Bruno 21 e82296ba06 1er commit
De la docs au format Mkdocs
2018-09-16 14:48:15 +02:00

2.5 KiB
Raw Blame History

ghost

Installer nvm.

Version LTS de Node:

$ nvm install --lts
$ nvm use --lts

Installer ghost-cli:

$ npm install -g ghost-cli

Créer un répertoire où installer Ghost:

$ mkdir myblog
$ cd myblog
$ ghost install local

Quand l'installation est terminée, on accède à Ghost à l'adresse http://localhost:2368/ et http://localhost:2368/ghost/ pour la page administration.

Paramétrage de Ghost (après l'installation)

$ ghost setup
? Enter your blog URL: http://localhost:2368
? Enter your MySQL hostname: localhost
? Enter your MySQL username: root
? Enter your MySQL password: [hidden]
? Enter your Ghost database name: ghost_prod
✔ Configuring Ghost
✔ Setting up instance
? Do you wish to set up "ghost" mysql user? Yes
✔ Setting up "ghost" mysql user
? Do you wish to set up Nginx? No
 Setting up Nginx [skipped]
Task ssl depends on the 'nginx' stage, which was skipped.
 Setting up SSL [skipped]
? Do you wish to set up Systemd? No
 Setting up Systemd [skipped]
? Do you want to start Ghost? Yes
Ghost is already running! Run `ghost ls` for more information

View running ghost processes:

$ ghost ls
┌─────────────┬───────────────┬─────────┬───────────────────────┬────────────────────────┬──────┬─────────────────┐
│ Name        │ Location      │ Version │ Status                │ URL                    │ Port │ Process Manager │
├─────────────┼───────────────┼─────────┼───────────────────────┼────────────────────────┼──────┼─────────────────┤
│ ghost-local │ ~/Sites/ghost │ 2.0.3   │ running (development) │ http://localhost:2368/ │ 2368local           │
└─────────────┴───────────────┴─────────┴───────────────────────┴────────────────────────┴──────┴─────────────────┘