5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-21 21:46:21 +00:00

usar postgresql en producción

This commit is contained in:
f 2019-09-24 19:53:44 -03:00
parent c5e9b003c7
commit 80c029f78b
No known key found for this signature in database
GPG key ID: 2AE5A13E321F953D
3 changed files with 8 additions and 5 deletions

View file

@ -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

View file

@ -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

View file

@ -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