My Portfolio
- Clone the project:
git clone https://github.com/shaunsaker/shaunsaker
- Install dependencies:
yarn
- Run the app:
yarn run dev
-
Do some work.
-
Create a PR.
On PR approval and merge into master:
- yarn run publish
- Run update script:
yarn run update-deps
yarn run storybook
Add the build-storybook
step only if you want to deploy your storybook alongside your app.
Add the export
step only if you want to deploy a static site, that is, a site that does not require a node.js server to run it.
yarn run build-ENV
yarn run build-storybook
yarn run export
In the export
step, robots.txt
and sitemap.xml
will be created and assets will be copied from ./src/public
to ./dist
.
You will deploy the dist folder.
Make sure that you've built and exported the app as above.
yarn run deploy-ENV
OR deploy to all environments except production
yarn run deploy-all-no-prod
OR deploy to all environments
yarn run deploy-all
The development environment's database is seen as the source of truth for all the other environments. This is backed up as needed.
yarn run db-backup
All environments will be restored with the database from the development environment, as discussed above.
yarn run db-restore-ENV
OR restore all environments except production
yarn run db-restore-all-no-prod
OR restore all environments
yarn run db-restore-all
NOTE: This is not yet implemented.
yarn run test