From a02afbabc8f1905f750b466a6543a59b1e5f96c1 Mon Sep 17 00:00:00 2001 From: Ross-Hunter Date: Mon, 8 Apr 2024 16:44:27 -0400 Subject: [PATCH] Update heroku.md procfile Current instructions result in `/bin/sh: 1: [[: not found` error --- docs/deployment/heroku.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/deployment/heroku.md b/docs/deployment/heroku.md index b6f6b3a..b50f084 100644 --- a/docs/deployment/heroku.md +++ b/docs/deployment/heroku.md @@ -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