Skip to content

Commit

Permalink
Merge pull request #1242 from gmmcal/improve-render
Browse files Browse the repository at this point in the history
OPT: Improve render setup
  • Loading branch information
gmmcal committed May 17, 2024
2 parents 22c648b + 3ea30fb commit 1331b48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions bin/docker-entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# ./bin/rails server (executed on production image)
if [ "${1}" == "./bin/rails" ] && [ "${2}" == "server" ]; then
./bin/rails db:migrate
./bin/rails db:seed:all
fi

# bundle exec rails <anything> (executed on development image)
Expand Down
3 changes: 2 additions & 1 deletion render.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ services:
name: gustavocunha
property: connectionString
- fromGroup: production
- fromGroup: gmmcal
- type: web
name: gustavocunha-staging
env: ruby
Expand All @@ -52,7 +53,7 @@ services:
fromDatabase:
name: gustavocunha-staging
property: connectionString
- fromGroup: staging
- fromGroup: gmmcal
- type: redis
name: gustavocunha
ipAllowList: []
Expand Down

0 comments on commit 1331b48

Please sign in to comment.