-
-
Notifications
You must be signed in to change notification settings - Fork 729
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5088 from coopdevs/do-not-recreate-when-booting-d…
…ocker Do not reset the dev env when booting docker
- Loading branch information
Showing
3 changed files
with
14 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,13 +35,20 @@ Download the Docker images and build the containers: | |
$ docker-compose build | ||
``` | ||
|
||
Run the app with all the required containers: | ||
Setup the database and seed it with sample data: | ||
```sh | ||
$ docker-compose run web bundle exec rake db:reset | ||
$ docker-compose run web bundle exec rake db:test:prepare | ||
$ docker-compose run web bundle exec rake ofn:sample_data | ||
``` | ||
|
||
Finally, run the app with all the required containers: | ||
|
||
```sh | ||
$ docker-compose up | ||
``` | ||
|
||
This command will setup the database and seed it with sample data. The default admin user is '[email protected]' with 'ofn123' password. | ||
The default admin user is '[email protected]' with 'ofn123' password. | ||
Check the app in the browser at `http://localhost:3000`. | ||
|
||
You will then get the trace of the containers in the terminal. You can stop the containers using Ctrl-C in the terminal. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters