socialpredict
socialpredict copied to clipboard
Update Instructions for Deploying on Local, Ubuntu Version, Docker Version, Docker-Compose, Etc.
- Need to delete the copy and re-create .env.dev into .env.
- Troubleshooting for development - Building and rebuilding images
- Remember to mention that if port changes are made, (e.g. new development environment used), need to change .env.dev file, REACT_PORT, HOST_PORT, NGinx, Dockerfiles Expose, appropriate commands, and then rebuild all relevant docker images affected.
Nginx rebuild ...
use nginx.conf.template rather than nginx.conf to update ports.
CORES:
// CORS handler
c := cors.New(cors.Options{
AllowedOrigins: []string{"http://localhost:3000", "https://brierfoxforecast.ngrok.app", "http://localhost:8089"},
AllowedMethods: []string{"GET", "POST", "OPTIONS"},
AllowedHeaders: []string{"Content-Type", "Authorization"},
})
Need to change localhost:3000 to localhost:{FRONTEND_DOMAIN}