Closed Kennric closed 7 years ago
@Kennric you should automatically create the test_data directory, otherwise it errors out.
@alxngyn the database wiping is a documentation issue - we need to document that dev instances should use a separate db file from the test instance.
@Kennric remind me the steps I need to do to properly import the data into a docker-compose instance? I'm having a hard time getting the data to show up after I load it and run dev up. If you could provide step by step that would be great.
Thanks-
@ramereth
To import data in the docker dev instance
Assuming you have data exported as described in docs/source/development/test_data.rst in a directory test_data
in the app directory:
DB_URL=sqlite://dev.sqlite
docker-compose run dev bash
rake import_data
docker-compose up dev
http://localhost:4567
@Kennric I'm getting the following error on step 2. Did you miss a step I needed to do?
Sequel::DatabaseError: SQLite3::SQLException: no such table: plugins
fixes issue #253
Changes in this PR.
Testing this PR.
rvm all do rake export_data
docker-compose run dev bash
rake import_data
docker-compose up dev
@osuosl/devs
@alxngyn @hsolorza @ramereth