Commit 4ed0e8a0 authored by Zac Wood's avatar Zac Wood

actually remote DB is way too slow now -- undo

parent b87ba625
Pipeline #3485 failed with stage
in 2 minutes and 29 seconds
......@@ -11,5 +11,5 @@ ENV RAILS_ENV production
RUN bundle install
RUN export SECRET_KEY_BASE=$(rails secret)
RUN rake assets:precompile
#RUN rails db:migrate
#RUN rails db:seed
RUN rails db:migrate
RUN rails db:seed
......@@ -20,13 +20,17 @@ test:
<<: *default
database: db/test.sqlite3
production:
adapter: postgresql
encoding: unicode
database: <%= ENV.fetch("DB_DATABASE") { "" } %>
username: <%= ENV.fetch("DB_USERNAME") { "" } %>
password: <%= ENV.fetch("DB_PASSWORD") { "" } %>
host: <%= ENV.fetch("DB_HOST") { "localhost" } %>
port: <%= ENV.fetch("DB_PORT") { 5432 } %>
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
timeout: 5000
development:
<<: *default
database: db/production.sqlite3
# production:
# adapter: postgresql
# encoding: unicode
# database: <%= ENV.fetch("DB_DATABASE") { "" } %>
# username: <%= ENV.fetch("DB_USERNAME") { "" } %>
# password: <%= ENV.fetch("DB_PASSWORD") { "" } %>
# host: <%= ENV.fetch("DB_HOST") { "localhost" } %>
# port: <%= ENV.fetch("DB_PORT") { 5432 } %>
# pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
# timeout: 5000
......@@ -112,7 +112,7 @@ def main
# wipe_db
parser = PatriotWeb::Parser.new
semesters = parser.parse_semesters[0..1] # expand to include however many semesters you want
semesters = parser.parse_semesters[0..12] # expand to include however many semesters you want
courses = nil
semesters.each do |semester|
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment