Skip to content

Commit

Permalink
Pass env var for storage from helm template
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Jan 22, 2025
1 parent 24b70ee commit bc872de
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions images/web/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@ production:
password: ${POSTGRES_PASSWORD}
encoding: utf8" >$workdir/config/database.yml



export RAILS_STORAGE_SERVICE=s3
export RAILS_STORAGE_REGION=us-east-1
export RAILS_STORAGE_BUCKET=ohm-website-staging

#### Setting up S3 storage
if [ "$RAILS_STORAGE_SERVICE" == "s3" ]; then
if [ -z "$RAILS_STORAGE_REGION" ] || [ -z "$RAILS_STORAGE_BUCKET" ]; then
Expand All @@ -42,8 +36,6 @@ else
echo "RAILS_STORAGE_SERVICE is not set to 's3', skipping configuration."
fi



#### Initializing an empty $workdir/config/settings.local.yml file, typically used for development settings
echo "" > $workdir/config/settings.local.yml

Expand Down

0 comments on commit bc872de

Please sign in to comment.