1er commit

De la docs au format Mkdocs
This commit is contained in:
2018-09-16 14:48:15 +02:00
commit e82296ba06
140 changed files with 17082 additions and 0 deletions

67
docs/macos/node/ghost.md Normal file
View File

@@ -0,0 +1,67 @@
# 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/ │ 2368local
└─────────────┴───────────────┴─────────┴───────────────────────┴────────────────────────┴──────┴─────────────────┘
```