1
0
Fork 0

deploy step, better readme

This commit is contained in:
Ava Gaiety W 2024-03-04 17:57:02 +00:00
parent 4f72cc6939
commit ae4ee26090
2 changed files with 32 additions and 2 deletions

View file

@ -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
```

View file

@ -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",