Compare commits
1 Commits
0222f7da34
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 298610b5f6 |
@@ -1 +1 @@
|
||||
web: rvmsudo bundle exec unicorn -p 9000
|
||||
web: bundle exec puma -C config/puma.rb
|
||||
|
||||
+5
-1
@@ -8,10 +8,14 @@
|
||||
<% db_service = ENV.fetch("DATABASE_SERVICE_NAME","").upcase %>
|
||||
|
||||
development:
|
||||
<% if ENV["DATABASE_URL"] %>
|
||||
url: <%= ENV["DATABASE_URL"] %>
|
||||
<% else %>
|
||||
adapter: sqlite3
|
||||
database: db/development.sqlite3
|
||||
pool: 5
|
||||
timeout: 5000
|
||||
<% end %>
|
||||
|
||||
mysql:
|
||||
adapter: mysql2
|
||||
@@ -47,4 +51,4 @@ openshift:
|
||||
password: <%= password %>
|
||||
host: <%= ENV["#{db_service}_SERVICE_HOST"] %>
|
||||
port: <%= ENV["#{db_service}_SERVICE_PORT"] %>
|
||||
database: <%= ENV["POSTGRESQL_DATABASE"] %>
|
||||
database: <%= ENV["POSTGRESQL_DATABASE"] %>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
Railsgoat::Application.configure do
|
||||
# Settings specified here will take precedence over those in config/application.rb
|
||||
config.hosts << '.svc.cluster.local'
|
||||
config.hosts << ENV['COOLIFY_FQDN'] || 'localhost'
|
||||
# In the development environment your application's code is reloaded on
|
||||
# every request. This slows down response time but is perfect for development
|
||||
# since you don't have to restart the web server when you make code changes.
|
||||
|
||||
@@ -81,6 +81,8 @@ Railsgoat::Application.configure do
|
||||
# Rake tasks automatically ignore this option for performance.
|
||||
config.eager_load = true
|
||||
|
||||
config.active_storage.service = :production
|
||||
|
||||
# For Rails 4.0+: Use default logging formatter so that PID and timestamp are not suppressed.
|
||||
config.log_formatter = ::Logger::Formatter.new
|
||||
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
max_threads_count = ENV.fetch("RAILS_MAX_THREADS", 5)
|
||||
min_threads_count = ENV.fetch("RAILS_MIN_THREADS") { max_threads_count }
|
||||
threads min_threads_count, max_threads_count
|
||||
|
||||
port ENV.fetch("PORT", 3000)
|
||||
|
||||
environment ENV.fetch("RAILS_ENV", "development")
|
||||
|
||||
workers ENV.fetch("WEB_CONCURRENCY", 2)
|
||||
|
||||
preload_app!
|
||||
|
||||
plugin :tmp_restart
|
||||
@@ -0,0 +1,11 @@
|
||||
test:
|
||||
service: Disk
|
||||
root: <%= Rails.root.join("tmp/storage") %>
|
||||
|
||||
local:
|
||||
service: Disk
|
||||
root: <%= Rails.root.join("storage") %>
|
||||
|
||||
production:
|
||||
service: Disk
|
||||
root: <%= Rails.root.join("storage") %>
|
||||
@@ -5,5 +5,3 @@ services:
|
||||
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
|
||||
volumes:
|
||||
- .:/myapp
|
||||
ports:
|
||||
- "3000:3000"
|
||||
|
||||
Reference in New Issue
Block a user