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 55b29d1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
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

0 comments on commit 55b29d1

Please sign in to comment.