Skip to content

Instantly share code, notes, and snippets.

@bryanjhv
Created February 10, 2021 01:16
Show Gist options
  • Save bryanjhv/59f5aaafed2b2739e2fc1560f16feb91 to your computer and use it in GitHub Desktop.
Save bryanjhv/59f5aaafed2b2739e2fc1560f16feb91 to your computer and use it in GitHub Desktop.
SLUG=btwrdn
TAG=1.19.0
git clone https://github.com/dani-garcia/bitwarden_rs.git
cd bitwarden_rs
git checkout $TAG
sed -i '2 a export ROCKET_PORT=$PORT\n' docker/start.sh
heroku login
heroku container:login
heroku apps:create $SLUG
heroku addons:create heroku-postgresql:hobby-dev
heroku config:set LOG_LEVEL=Warn DATABASE_MAX_CONNS=18 IP_HEADER="X-Forwarded-For" DOMAIN="https://$SLUG.herokuapp.com" SHOW_PASSWORD_HINT=false INVITATIONS_ALLOWED=false AUTHENTICATOR_DISABLE_TIME_DRIFT=true ORG_ATTACHMENT_LIMIT=0 USER_ATTACHMENT_LIMIT=0 ROCKET_ENV=production ROCKET_WORKERS=20 ROCKET_CLI_COLORS=off
heroku container:push web --arg DB=postgresql
heroku container:release web
# TODO: Wait for signup...
heroku config:set SIGNUPS_ALLOWED=false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment