From baede2a36af749759fd13994b23d1e8116280ee0 Mon Sep 17 00:00:00 2001 From: SimonGideon Date: Sat, 23 Sep 2023 12:03:13 +0300 Subject: [PATCH] load-railway --- Procfile | 1 + config/database.yml | 5 ++++- config/environments/development.rb | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 Procfile diff --git a/Procfile b/Procfile new file mode 100644 index 0000000..8994f0a --- /dev/null +++ b/Procfile @@ -0,0 +1 @@ +web: rake db:migrate && bin/rails server -b 0.0.0.0 -p {PORT:-3000} \ No newline at end of file diff --git a/config/database.yml b/config/database.yml index c4bc8e3..408f139 100644 --- a/config/database.yml +++ b/config/database.yml @@ -81,4 +81,7 @@ test: # production: <<: *default - url: <%= ENV['DATABASE_URL'] %> \ No newline at end of file + url: <%= ENV['DATABASE_URL'] %> + database: money_order_app_production + username: money_order_app + password: <%= ENV['MONEY_ORDER_APP_DATABASE_PASSWORD'] %> \ No newline at end of file diff --git a/config/environments/development.rb b/config/environments/development.rb index a72a1b0..0371bcd 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -70,6 +70,7 @@ config.action_mailer.default_url_options = { host: "localhost", port: 3000 } config.action_mailer.delivery_method = :letter_opener config.action_mailer.perform_deliveries = true + # add rack::LiveReload to the bottom of the middleware stack with the default options: config.middleware.insert_after ActionDispatch::Static, Rack::LiveReload end