mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-14 17:01:42 +00:00
usar postgresql en producción
This commit is contained in:
parent
c5e9b003c7
commit
80c029f78b
3 changed files with 8 additions and 5 deletions
3
Gemfile
3
Gemfile
|
@ -18,8 +18,6 @@ gem 'dotenv-rails', require: 'dotenv/rails-now'
|
|||
|
||||
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
||||
gem 'rails', '~> 6'
|
||||
# Use sqlite3 as the database for Active Record
|
||||
gem 'sqlite3'
|
||||
# Use Puma as the app server
|
||||
gem 'puma', '~> 3.7'
|
||||
# Use SCSS for stylesheets
|
||||
|
@ -76,6 +74,7 @@ group :development, :test do
|
|||
# Adds support for Capybara system testing and selenium driver
|
||||
gem 'capybara', '~> 2.13'
|
||||
gem 'selenium-webdriver'
|
||||
gem 'sqlite3'
|
||||
end
|
||||
|
||||
group :development do
|
||||
|
|
|
@ -21,5 +21,9 @@ test:
|
|||
database: db/test.sqlite3
|
||||
|
||||
production:
|
||||
<<: *default
|
||||
database: data/production.sqlite3
|
||||
adapter: postgresql
|
||||
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
|
||||
database: sutty
|
||||
user: sutty
|
||||
host: postgresql
|
||||
encoding: unicode
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
check process sutty with pidfile /srv/http/tmp/puma.pid
|
||||
start program = "/bin/sh -c 'cd /srv/http && ./bin/migrate_database && foreman start migrate && foreman start sutty'" as uid app
|
||||
start program = "/bin/sh -c 'cd /srv/http && foreman start migrate && foreman start sutty'" as uid app
|
||||
stop program = "/bin/sh -c 'cat /srv/http/tmp/puma.pid | xargs kill'"
|
||||
|
||||
check program sync_assets
|
||||
|
|
Loading…
Reference in a new issue