rails-templates
rails-templates copied to clipboard
Fix: `.env` file is used by the Build Docker Production image and Deploy to AWS workflows
Issue
The env variable PORT
is not set in the workflow which results in falling back on the .env
file. This is a problem if we want to remove the .env
file from the source control.
Expected
The GitHub workflows should not depend on the .env
file.
Solution
add the PORT=80
env variable in the Build Docker Production and Deploy workflows in the following files:
-
.template/addons/github/.github/workflows/test_production_build.yml.tt
-
.template/addons/github/.github/workflows/deploy_heroku.yml.tt
Example: