deploy step, better readme
This commit is contained in:
parent
4f72cc6939
commit
ae4ee26090
2 changed files with 32 additions and 2 deletions
29
README.md
29
README.md
|
@ -1,3 +1,32 @@
|
||||||
# fursona
|
# fursona
|
||||||
|
|
||||||
Homepage for Gaiety, the doggo
|
Homepage for Gaiety, the doggo
|
||||||
|
|
||||||
|
## Developing
|
||||||
|
|
||||||
|
In two terminals
|
||||||
|
|
||||||
|
```sh
|
||||||
|
# first terminal
|
||||||
|
npm run start
|
||||||
|
|
||||||
|
# second terminal
|
||||||
|
npm run start:styles
|
||||||
|
```
|
||||||
|
|
||||||
|
## Building for production, static site
|
||||||
|
|
||||||
|
```sh
|
||||||
|
npm run build
|
||||||
|
```
|
||||||
|
|
||||||
|
## Deploy steps
|
||||||
|
|
||||||
|
Requires Docker, NodeJS
|
||||||
|
|
||||||
|
_Docker container automatically performs dependency install and build_
|
||||||
|
|
||||||
|
```sh
|
||||||
|
npm run deploy
|
||||||
|
```
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,8 @@
|
||||||
"build": "eleventy --input=./src --output=./dist",
|
"build": "eleventy --input=./src --output=./dist",
|
||||||
"postbuild": "npx postcss ./src/styles.css -o ./dist/styles.css --env production",
|
"postbuild": "npx postcss ./src/styles.css -o ./dist/styles.css --env production",
|
||||||
"start": "eleventy --serve --input=./src --output=./dist",
|
"start": "eleventy --serve --input=./src --output=./dist",
|
||||||
"start:styles": "npx postcss ./src/styles.css -o ./dist/styles.css --watch"
|
"start:styles": "npx postcss ./src/styles.css -o ./dist/styles.css --watch",
|
||||||
|
"deploy": "docker compose up --build -d"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
Loading…
Add table
Reference in a new issue