68 lines
2.5 KiB
Markdown
68 lines
2.5 KiB
Markdown
# ghost
|
||
|
||
|
||
|
||
[Installer nvm](nvm.md).
|
||
|
||
Version LTS de Node:
|
||
|
||
```bash
|
||
$ nvm install --lts
|
||
$ nvm use --lts
|
||
```
|
||
|
||
Installer ghost-cli:
|
||
|
||
```bash
|
||
$ npm install -g ghost-cli
|
||
```
|
||
|
||
Créer un répertoire où installer Ghost:
|
||
|
||
```bash
|
||
$ 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)
|
||
|
||
```bash
|
||
$ 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:
|
||
|
||
```bash
|
||
$ ghost ls
|
||
┌─────────────┬───────────────┬─────────┬───────────────────────┬────────────────────────┬──────┬─────────────────┐
|
||
│ Name │ Location │ Version │ Status │ URL │ Port │ Process Manager │
|
||
├─────────────┼───────────────┼─────────┼───────────────────────┼────────────────────────┼──────┼─────────────────┤
|
||
│ ghost-local │ ~/Sites/ghost │ 2.0.3 │ running (development) │ http://localhost:2368/ │ 2368 │ local │
|
||
└─────────────┴───────────────┴─────────┴───────────────────────┴────────────────────────┴──────┴─────────────────┘
|
||
```
|
||
|