forked from AllYourBot/hostedgpt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Heroku as a deploy option (AllYourBot#369)
- Loading branch information
Showing
3 changed files
with
105 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
web: env bin/rails server -p ${PORT:-3000} | ||
release: bin/rails db:prepare |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"name": "hostedgpt", | ||
"description": "An open version of ChatGPT you can host anywhere or run locally.", | ||
"logo": "https://raw.githubusercontent.com/allyourbot/hostedgpt/main/app/assets/images/logo.svg", | ||
"buildpacks": [ | ||
{ | ||
"url": "heroku/ruby" | ||
} | ||
], | ||
"env": { | ||
"RAILS_ENV": { | ||
"description": "Rails environment", | ||
"value": "production" | ||
}, | ||
"RAILS_LOG_TO_STDOUT": { | ||
"description": "Rails log to stdout", | ||
"value": "enabled" | ||
}, | ||
"SECRET_KEY_BASE": { | ||
"description": "Secret key base for verifying signed cookies", | ||
"generator": "secret" | ||
}, | ||
"RAILS_MASTER_KEY": { | ||
"description": "Rails encryption key", | ||
"generator": "secret" | ||
}, | ||
"CONFIGURE_ACTIVE_RECORD_ENCRYPTION_FROM_ENV": { | ||
"description": "hostedgpt specific", | ||
"value": "true" | ||
}, | ||
"ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY": { | ||
"description": "hostedgpt specific", | ||
"generator": "secret" | ||
}, | ||
"ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY": { | ||
"description": "hostedgpt specific", | ||
"generator": "secret" | ||
}, | ||
"ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT": { | ||
"description": "hostedgpt specific", | ||
"generator": "secret" | ||
}, | ||
"RUN_SOLID_QUEUE_IN_PUMA": { | ||
"description": "Runs the worker process within web dynos", | ||
"value": "true" | ||
} | ||
}, | ||
"formation": { | ||
"web": { | ||
"quantity": 1 | ||
} | ||
}, | ||
"addons": ["heroku-postgresql:essential-0"], | ||
"scripts": { | ||
"postdeploy": "bundle exec rails db:prepare" | ||
}, | ||
"stack": "heroku-22" | ||
} |