INK tries to run in `development`
The dockerized INK runs in a development environment for me.
To reproduce: I followed your instructions here: https://gist.github.com/blahah/8c01d49365ae4f3c0545cea7b138ed41
- clone the repo from your fork (production-docker branch):
git clone -b production-docker https://gitlab.coko.foundation/blahah/ink-api
cd ink-api
./bin/create-env localhost charles.theg@gmail.com
docker volume create --name gems
./bin/docker
bundle
rake db:create
rake db:schema:load
Instead of succeeding, I get this error:
"Loading file location from ENV[DEVELOPMENT_FILE_LOCATION]"
"File location set to "
rake aborted!
Please ensure file storage directory is specified in .env (Check env.sample if this file is missing)
/Users/atheg/Desktop/rik's_ink/3/ink-api/config/initializers/ink_api.rb:5:in `<top (required)>'
/Users/atheg/Desktop/rik's_ink/3/ink-api/config/environment.rb:5:in `<top (required)>'
Tasks: TOP => db:schema:load => environment
(See full trace by running task with --trace)
It seems that by the time I run rake db:create
, the ENV is already set to development, since it makes a test and an development database, not the production one.