-
Install docker https://www.docker.com
-
Configure Dnsmasq: https://passingcuriosity.com/2013/dnsmasq-dev-osx/
-
Install the SSL certificate (docker/nginx/ssl/futurefund.dev.crt) to your keychain.
-
Copy and configure the
.env
file (this file is gitignored):cp docker/example.env .env vi .env
-
Run the following commands:
docker-compose up docker-compose exec web rails db:create docker-compose exec web rails db:schema:load docker-compose exec web rails db:seed
Open a command prompt to run rails
commands:
docker-compose exec web bash
Or run the commands from your shell:
docker-compose exec web rails test
Connect to the development database (make sure mysql is not running locally):
mysql -u root -p -h 127.0.0.1
Using the debugger with byebug:
docker attach draftmanager_web_1
This application does not have any tests.