-
Notifications
You must be signed in to change notification settings - Fork 258
update #1240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
update #1240
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,71 +1,23 @@ | ||
| envVarGroups: | ||
| - name: spree-envs | ||
| envVars: | ||
| - key: DB_POOL | ||
| value: 10 | ||
|
|
||
| databases: | ||
| - name: spree-db | ||
| databaseName: spree | ||
| user: spree | ||
| plan: basic-1gb | ||
| diskSizeGB: 10 | ||
|
|
||
| services: | ||
| - type: web | ||
| name: spree-web | ||
| runtime: ruby | ||
| plan: standard | ||
| buildCommand: bin/render-build.sh | ||
| preDeployCommand: bin/rails db:migrate && bin/rails db:seed | ||
| startCommand: "bundle exec puma -C config/puma.rb" | ||
| name: spree-storefront | ||
| env: ruby | ||
| plan: free | ||
| buildCommand: | | ||
| bundle install && | ||
| RAILS_ENV=production bundle exec rails assets:precompile && | ||
| RAILS_ENV=production bundle exec rails db:migrate | ||
| startCommand: bundle exec rails server -b 0.0.0.0 | ||
| envVars: | ||
| - key: DATABASE_URL | ||
| fromDatabase: | ||
| name: spree-db | ||
| property: connectionString | ||
| - key: SECRET_KEY_BASE | ||
| sync: false | ||
| - key: WEB_CONCURRENCY | ||
| value: 2 # sensible default | ||
| - key: REDIS_URL | ||
| fromService: | ||
| type: keyvalue | ||
| name: keyvalue | ||
| property: connectionString | ||
| - type: worker | ||
| name: spree-worker | ||
| runtime: ruby | ||
| plan: standard | ||
| buildCommand: bin/render-build.sh | ||
| startCommand: bundle exec sidekiq | ||
| envVars: | ||
| generateValue: true | ||
| - key: RAILS_ENV | ||
| value: production | ||
|
Comment on lines
+13
to
+15
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Add missing Rails master key for encrypted credentials You’re auto-generating Example: - key: RAILS_MASTER_KEY
fromSecret:
name: spree-credentials
property: masterKey🤖 Prompt for AI Agents |
||
| - key: DATABASE_URL | ||
| fromDatabase: | ||
| name: spree-db | ||
| property: connectionString | ||
| - key: REDIS_URL | ||
| fromService: | ||
| type: keyvalue | ||
| name: keyvalue | ||
| property: connectionString | ||
| - key: SECRET_KEY_BASE | ||
| sync: false | ||
| - key: REDIS_CACHE_URL | ||
| fromService: | ||
| type: keyvalue | ||
| name: keyvalue-cache | ||
| property: connectionString | ||
| - fromGroup: spree-envs | ||
|
|
||
| - type: keyvalue | ||
| name: keyvalue | ||
| ipAllowList: [] | ||
| plan: starter | ||
| maxmemoryPolicy: noeviction | ||
|
|
||
| - type: keyvalue | ||
| name: keyvalue-cache | ||
| ipAllowList: [] | ||
| plan: starter | ||
| maxmemoryPolicy: allkeys-lru | ||
| databases: | ||
| - name: spree-db | ||
| plan: free | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix missing dynamic port binding and optimize build steps
startCommandis missing-p $PORT, which Render injects at runtime. Without it, Rails defaults to port 3000 and won’t receive external traffic.Apply:
📝 Committable suggestion
🤖 Prompt for AI Agents