Skip to content

Commit

Permalink
Update heroku.md procfile
Browse files Browse the repository at this point in the history
Current instructions result in `/bin/sh: 1: [[: not found` error
  • Loading branch information
Ross-Hunter authored Apr 8, 2024
1 parent b95fff9 commit a02afba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/deployment/heroku.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ We have to use the same `Procfile` for both applications ('cause we're using the

```sh
# Procfile
web: [[ "$ANYCABLE_DEPLOYMENT" == "true" ]] && bundle exec anycable --server-command="anycable-go" || bundle exec rails server -p $PORT -b 0.0.0.0
web: [ "$ANYCABLE_DEPLOYMENT" = "true" ] && bundle exec anycable --server-command="anycable-go" || bundle exec rails server -p $PORT -b 0.0.0.0
```

If you have a `release` command in your `Procfile`, we recommend to ignore it for AnyCable deployment as well and let the main app take care of it. For example:

```sh
release: [[ "$ANYCABLE_DEPLOYMENT" == "true" ]] && echo "Skip release script" || bundle exec rails db:migrate
release: [ "$ANYCABLE_DEPLOYMENT" = "true" ] && echo "Skip release script" || bundle exec rails db:migrate
```

### Preparing Heroku apps
Expand Down

0 comments on commit a02afba

Please sign in to comment.