-
Notifications
You must be signed in to change notification settings - Fork 54
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 #345 from ComPlat/development
Development prepare v0.3.0
- Loading branch information
Showing
23 changed files
with
690 additions
and
127 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
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
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 |
---|---|---|
|
@@ -80,10 +80,18 @@ This is a setup for a 'pseudo' production stage using passenger and aimed for us | |
(For the development environment, change 'RAILS_ENV' to 'development' in docker-compose.yml) | ||
|
||
1. Build the image from Dockerfile `docker-compose build` or pull the image: `docker-compose pull` | ||
2. Initialize database FIRST: `docker-compose run app bundle exec rake db:create db:migrate` | ||
2. Initialize database FIRST: | ||
* `docker-compose run app bundle exec rake db:create` | ||
* `docker-compose run app bundle exec rake db:migrate` | ||
* `docker-compose run app bundle exec rake db:seed` (optional). A "seed" | ||
user will be inserted into the db with the information as below: [email protected] - password: "@eln.edu" | ||
* `docker-compose run app rake ketcherails:import:common_templates` (optional) | ||
3. Precompile assets: `docker-compose run app bundle exec rake assets:precompile` | ||
4. To start the server: `docker-compose up` or start server and detach: `docker-compose up -d` | ||
|
||
* Start interactive shell with docker: `docker-compose run app /bin/bash` | ||
* NOTE: In this Docker image, we disabled the email verification progress | ||
|
||
* To enable email confirmation, uncomment ":confirmable" at line 5 of `app/models/user.rb`, stop the `docker-compose` by `docker-compose stop` and start `docker-compose`. | ||
|
||
|
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
Oops, something went wrong.