start.sh 296 Bytes
Newer Older
1
2
#!/bin/sh

Zac Wood's avatar
Zac Wood committed
3
# generate a secret key for rails to use
4
export SECRET_KEY_BASE=$(rails secret)
Zac Wood's avatar
Zac Wood committed
5
6
7
8
9
10
11
12
13

# uncomment for faster docker builds during testing
#cp db/development.sqlite3 db/production.sqlite3

# load data from patriot web into database
rails db:migrate
rails db:seed

# start the server
14
rails s