I am setting up a staging server on GCP.
Steps followed are -
- Uploaded docker image to Artifact Registry
- Using Cloud SQL for database
- Using Cloud Run
I am using terraform configuration. I can deploy it but it shows me an error for host so added the following hosts in staging.rb, development.rb and production.rb
config.hosts << 'URL generated by cloud run'
It works after adding in all environment.rb file but I want it to be specific just for staging.rb
Can you please help. Thank you