This project was bootstrapped with Create React App.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
- Make sure python version is below 3.0
- install packages
npm install
- get the appropriate
.env
file (.env.production.local
for production,.env.development.local
and.env.test.local
for development)
- Merge to master on github
- run command:
ssh -t anhd@45.55.44.160 "cd /var/www/anhd-council-client && sudo sh pull.sh"
(or runsh deploy.sh
helper script)
- Merge to staging branch on github and push
- run command:
ssh -t anhd@45.55.44.160 "cd /var/www/staging-anhd-council-client && sudo sh pull_staging.sh"
(or runsh deploy_staging.sh
helper script)
The helper scripts automate the deploy process of pulling from github, installing packages, building the bundle, and restarting the nginx server in the backend directory of the server.
You may get an error like "gyp ERR! stack Error: EACCES: permission denied, mkdir '/var/www/anhd-council-client/node_modules/iltorb/build' on deployment. You may ignore it and just wait for the deployment to continue.