Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
schedules
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
11
Issues
11
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SRCT
schedules
Commits
4ed0e8a0
Commit
4ed0e8a0
authored
Dec 15, 2018
by
Zac Wood
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
actually remote DB is way too slow now -- undo
parent
b87ba625
Pipeline
#3485
failed with stage
in 2 minutes and 29 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
13 deletions
+17
-13
schedules/Dockerfile
schedules/Dockerfile
+2
-2
schedules/config/database.yml
schedules/config/database.yml
+14
-10
schedules/db/seeds.rb
schedules/db/seeds.rb
+1
-1
No files found.
schedules/Dockerfile
View file @
4ed0e8a0
...
...
@@ -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
schedules/config/database.yml
View file @
4ed0e8a0
...
...
@@ -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
schedules/db/seeds.rb
View file @
4ed0e8a0
...
...
@@ -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
..
1
2
]
# expand to include however many semesters you want
courses
=
nil
semesters
.
each
do
|
semester
|
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment