From 39728f415fa6feac48aa07cd8a5d1cc420be9f6b Mon Sep 17 00:00:00 2001 From: rebuilt Date: Sat, 16 Oct 2021 16:09:58 +0200 Subject: [PATCH] Update readme with esbuild related commands --- README.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3a4cfc52..682ff46d 100644 --- a/README.md +++ b/README.md @@ -40,11 +40,11 @@ bundle exec rake db:create db:migrate db:seed ``` Install the javascript dependencies + ```bash yarn install ``` - At this point you can run the app and login. There won't be any data yet though; keep reading! The seed file populates the following tables @@ -151,5 +151,24 @@ yarn test ## Continuous Integration Pushing commits to the main branch triggers auto-deployment to the staging environment. +Use the ship-it script from the main branch when you're ready to deploy to staging + +```bash +scripts/ship-it.sh +``` Deployments to production must be done through the Heroku web interface or via the Heroku command line + +## Running the development server + +Start esbuild for dynamic compilation of javascript assets. + +```bash +yarn build --watch +``` + +Start the puma web server + +```bash +bin/rails s +```