Open yunghuffy opened 6 years ago
Get up and running
flip
gem to just pull from rubygemsflip
in it from app/assets/javascripts/application.js
secrets.yml
. Update DATABASE_IP
to db
, and open_fda_import_key
to your key
default: &default
secret_key_base: d9c69d37907ea27c1970faf75661433eb8ac11e725bece21fc32ca76274c40b0bb404b09548aa7441e1f801a04f10612c1d104b5388d41c525a9012621dcae01
DATABASE_IP: db
DATABASE_USERNAME: DB_USERNAME
DATABASE_PASSWORD: DB_PASSWORD
BASIC_AUTH_USERNAME: XXXXX
BASIC_AUTH_PASSWORD: XXXXX
open_fda_import_key: your API key
docker-compose
updocker-compose run web bundle install
docker-compose run bundle exec rails g flip:install
docker-compose run bundle exec rake db:create db:migrate
app/assets/javascripts/application.js
(again, for now)docker-compose
The idea here was to run this via simple
docker compose
. Couple of notes.You'll need to run migrations from
docker-compose run web ...
I found it simple enough to runbash
and test out different migrations techniques.After docker-compose up db
the following were run in a web container withbash
.