diff --git a/schedules/Dockerfile b/schedules/Dockerfile index fbf81fca5a915529b2f65b777322e6a0347c6cc4..f3325d6547161466425370d32b798fca3478afc3 100644 --- a/schedules/Dockerfile +++ b/schedules/Dockerfile @@ -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 diff --git a/schedules/config/database.yml b/schedules/config/database.yml index b817ee6a5e964faef46bb3f8d82c9f1da8123e5f..26f74643f2173125a51e2b7f74a47a8d86093962 100644 --- a/schedules/config/database.yml +++ b/schedules/config/database.yml @@ -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 diff --git a/schedules/db/seeds.rb b/schedules/db/seeds.rb index 3c03c13b1a41e8e78a86302e624c0e9629f566f9..0eb9d755cca353bc088ffa23e22248dca0aecd5b 100644 --- a/schedules/db/seeds.rb +++ b/schedules/db/seeds.rb @@ -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|