Skip to content

Commit

Permalink
chore: prepare Heroku deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
bibendi committed Oct 28, 2019
1 parent 9d7e06e commit b42a955
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
server: bin/rails server
web: bin/heroku-web
7 changes: 7 additions & 0 deletions bin/heroku-web
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

if [ "$ANYCABLE_DEPLOYMENT" == "true" ]; then
bundle exec anycable --server-command="anycable-go"
else
bundle exec rails server -p $PORT -b 0.0.0.0
fi
2 changes: 1 addition & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# Ensures that a master key has been made available in either ENV["RAILS_MASTER_KEY"]
# or in config/master.key. This key is used to decrypt credentials (and other encrypted files).
config.require_master_key = true
# config.require_master_key = true

# Disable serving static files from the `/public` folder by default since
# Apache or NGINX already handles this.
Expand Down
1 change: 0 additions & 1 deletion config/master.key.back

This file was deleted.

0 comments on commit b42a955

Please sign in to comment.