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 ...@@ -11,5 +11,5 @@ ENV RAILS_ENV production
RUN bundle install RUN bundle install
RUN export SECRET_KEY_BASE=$(rails secret) RUN export SECRET_KEY_BASE=$(rails secret)
RUN rake assets:precompile RUN rake assets:precompile
#RUN rails db:migrate RUN rails db:migrate
#RUN rails db:seed RUN rails db:seed
...@@ -20,13 +20,17 @@ test: ...@@ -20,13 +20,17 @@ test:
<<: *default <<: *default
database: db/test.sqlite3 database: db/test.sqlite3
production: development:
adapter: postgresql <<: *default
encoding: unicode database: db/production.sqlite3
database: <%= ENV.fetch("DB_DATABASE") { "" } %>
username: <%= ENV.fetch("DB_USERNAME") { "" } %> # production:
password: <%= ENV.fetch("DB_PASSWORD") { "" } %> # adapter: postgresql
host: <%= ENV.fetch("DB_HOST") { "localhost" } %> # encoding: unicode
port: <%= ENV.fetch("DB_PORT") { 5432 } %> # database: <%= ENV.fetch("DB_DATABASE") { "" } %>
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> # username: <%= ENV.fetch("DB_USERNAME") { "" } %>
timeout: 5000 # 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 ...@@ -112,7 +112,7 @@ def main
# wipe_db # wipe_db
parser = PatriotWeb::Parser.new 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 courses = nil
semesters.each do |semester| 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