1
0
Fork 0

update docs

This commit is contained in:
Matthias Kretschmann 2021-01-30 21:44:40 +01:00
parent fc5e273479
commit eb3ab3301c
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 5 additions and 8 deletions

View File

@ -81,8 +81,7 @@ jobs:
- uses: actions/download-artifact@v1
with:
name: public
- name: Deploy to S3
run: ./scripts/deploy-s3.sh
- run: npm run deploy
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

View File

@ -233,16 +233,14 @@ npm run new photo /path/to/photo.jpg
## 🚚 Deployment
Every branch or Pull Request is automatically deployed by [Vercel](https://vercel.com) with their GitHub integration. A link to a preview deployment will appear under each Pull Request.
The latest deployment of the `main` branch is automatically aliased to `kremalicious.com`.
Every branch or Pull Request is automatically deployed by [Vercel](https://vercel.com) with their GitHub integration. A link to a preview deployment will appear under each Pull Request. Because of Vercel's maximum cache size of 500MB, Vercel is not used for the production deployment.
### S3 Deployment
The deploy command simply calls the [`scripts/deploy-s3.sh`](scripts/deploy-s3.sh) script, syncing the contents of the `public/` folder to S3:
The latest deployment of the `main` branch is automatically deployed to S3 from the GitHub Action as the production deployment, aliased to `kremalicious.com`. The deploy command simply calls the [`scripts/deploy-s3.sh`](scripts/deploy-s3.sh) script, syncing the contents of the `public/` folder to S3:
```bash
npm run deploy:s3
npm run deploy
```
## 🏛 Licenses

View File

@ -19,7 +19,7 @@
"lint:md": "markdownlint './**/*.{md,markdown}' --ignore './{node_modules,public,.cache,.git,coverage}/**/*'",
"format": "prettier --ignore-path .gitignore --write '**/*.{js,jsx,ts,tsx,md,json,css,scss}'",
"tsc": "tsc --noEmit",
"deploy:s3": "./scripts/deploy.sh",
"deploy": "./scripts/deploy-s3.sh",
"new": "babel-node ./scripts/new.js"
},
"browserslist": [