Repository files navigation
Set up .env file with NODE_ENV and DATABASE credentials
Install nvm, then install npm 14.
npm install in the main directory, and in the client directory.
npm start in server and client folders
Automated (Re-)deployment
SSH into host Oracle Cloud machine
Run ./deploy.sh. Optionally, provide --client-only or --server-only flags if only one portion needs to be redeployed.
SSH into host Oracle Cloud machine
Change to code directory (e.g. ~/code/rohoTables/)
Pull changes from git
rm -rf build in the client folder (if needed)
npm run build the client
sudo rm -rf /var/www/html/build to empty the deployment folder
sudo cp -r build /var/www/html to copy build folder to the deployment folder
sudo systemctl restart rgmg.service to restart the server
Local Development Hosting
Ensure local .env file is pointing to development database
Install cloudflared if not already installed
npm build the client and then npm run the server
cloudflared tunnel --url http://localhost:5000 to start the local hosting
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Languages
JavaScript
92.6%
HTML
7.4%
You can’t perform that action at this time.