-
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.
- Loading branch information
1 parent
579c832
commit 6375ad1
Showing
2 changed files
with
30 additions
and
0 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,7 @@ | ||
#!/usr/bin/env bash | ||
# exit on error | ||
set -o errexit | ||
|
||
bundle install | ||
bundle exec rails assets:precompile | ||
bundle exec rails assets:clean |
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,23 @@ | ||
databases: | ||
- name: pages-ahead | ||
databaseName: pages-ahead | ||
user: pages-ahead | ||
plan: free | ||
|
||
services: | ||
- type: web | ||
name: pages-ahead | ||
runtime: ruby | ||
plan: free | ||
buildCommand: "./bin/render-build.sh" | ||
# preDeployCommand: "bundle exec rails db:migrate" # preDeployCommand only available on paid instance types | ||
startCommand: "bundle exec rails server" | ||
envVars: | ||
- key: DATABASE_URL | ||
fromDatabase: | ||
name: pages-ahead | ||
property: connectionString | ||
- key: RAILS_MASTER_KEY | ||
sync: false | ||
- key: WEB_CONCURRENCY | ||
value: 2 # sensible default |