rails-templates icon indicating copy to clipboard operation
rails-templates copied to clipboard

Fix: `.env` file is used by the Build Docker Production image and Deploy to AWS workflows

Open malparty opened this issue 2 years ago • 0 comments

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: image

malparty avatar Aug 12 '22 07:08 malparty