Skip to content

Commit

Permalink
Modify how the setup script sources .env
Browse files Browse the repository at this point in the history
  • Loading branch information
smartspot2 committed Jun 15, 2022
1 parent ff54911 commit f93c29b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ sleep 1
pwd > "$VIRTUAL_ENV/.project_dir"

# Add env variables to virutalenv activate script so that not everything needs to be run with 'heroku local'
sed 's/^/export /' .env >> "$VIRTUAL_ENV/bin/activate"
echo 'set -a; source $(cat $VIRTUAL_ENV/.project_dir)/.env; set +a' >> "$VIRTUAL_ENV/bin/activate"

# Setup postgres DB if needed
if ! psql -lt | grep -q '^ *csm_web_dev *'
Expand Down

0 comments on commit f93c29b

Please sign in to comment.