Skip to content

Commit

Permalink
fix: Really annoying bug in supervisorctl
Browse files Browse the repository at this point in the history
used `env -i bin/bundle rails exec server` to debug
  • Loading branch information
roschaefer committed Sep 11, 2020
1 parent 086c102 commit 37053e1
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ default: &default
encoding: unicode
pool: 20
username: <%= ENV["POSTGRES_USERNAME"] || 'postgres' %>
password: <%= ENV["POSTGRES_PASSWORD"] || 'postgres'%>
password: <%= ENV["POSTGRES_PASSWORD"] || 'postgres' %>
host: <%= ENV["POSTGRES_HOST"] || 'localhost' %>

development:
Expand Down
19 changes: 18 additions & 1 deletion deployment/uberspace/rundfunk-backend.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
[program:rundfunk-backend]
directory=%(ENV_HOME)s/rundfunk-backend/current
command=bin/bundle exec rails server -b 0.0.0.0
environment=PORT=3000,RAILS_ENV=production,RAILS_SERVE_STATIC_FILES=true,HOST=0.0.0.0
environment=PGHOST=localhost,RAILS_SERVE_STATIC_FILES=true,RAILS_ENV=production
autostart=yes
autorestart=yes

# =================================================================
# In production you must set these additional environment variables
# =================================================================
# POSTGRES_USERNAME
# POSTGRES_PASSWORD
# POSTGRES_HOST
# GOOGLE_API_KEY
# IPSTACK_API_KEY
# SENTRY_DSN
# SIDEKIQ_USERNAME
# SIDEKIQ_PASSWORD
# AUTH0_CLIENT_ID
# AUTH0_CLIENT_SECRET
# AUTH0_API_CLIENT_ID
# AUTH0_API_CLIENT_SECRET
# SECRET_KEY_BASE
20 changes: 19 additions & 1 deletion deployment/uberspace/rundfunk-sidekiq.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
[program:rundfunk-sidekiq]
directory=%(ENV_HOME)s/rundfunk-backend/current
command=bundle exec sidekiq
environment=PORT=3001,RAILS_ENV=production
environment=PGHOST=localhost,RAILS_SERVE_STATIC_FILES=true,RAILS_ENV=production
autostart=yes
autorestart=yes

# =================================================================
# In production you must set these additional environment variables
# =================================================================
# POSTGRES_USERNAME
# POSTGRES_PASSWORD
# POSTGRES_HOST
# GOOGLE_API_KEY
# IPSTACK_API_KEY
# SENTRY_DSN
# SIDEKIQ_USERNAME
# SIDEKIQ_PASSWORD
# AUTH0_DOMAIN
# AUTH0_CLIENT_ID
# AUTH0_CLIENT_SECRET
# AUTH0_API_CLIENT_ID
# AUTH0_API_CLIENT_SECRET
# SECRET_KEY_BASE

0 comments on commit 37053e1

Please sign in to comment.