socialpredict icon indicating copy to clipboard operation
socialpredict copied to clipboard

Update Instructions for Deploying on Local, Ubuntu Version, Docker Version, Docker-Compose, Etc.

Open pwdel opened this issue 1 year ago • 4 comments

pwdel avatar Feb 16 '24 20:02 pwdel

  1. Need to delete the copy and re-create .env.dev into .env.
  2. Troubleshooting for development - Building and rebuilding images

pwdel avatar Feb 17 '24 12:02 pwdel

  1. 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.

pwdel avatar Feb 17 '24 12:02 pwdel

Nginx rebuild ...

use nginx.conf.template rather than nginx.conf to update ports.

pwdel avatar Feb 17 '24 13:02 pwdel

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}

pwdel avatar Feb 17 '24 13:02 pwdel