Without the host and credentials, the `myapp_test` database is not
created, and instead, the user receives a PG error and a long backtrace.
This commit moves the credentials to a default anchor to share across
development and test environments.
* added example for env_file variables
Signed-off-by: Victoria Bialas <victoria.bialas@docker.com>
* copyedits and rework of Compose rails example
Signed-off-by: Victoria Bialas <victoria.bialas@docker.com>
* updated/improved Compose samples
Signed-off-by: Victoria Bialas <victoria.bialas@docker.com>
* linked some more basic docker-compose commands
Signed-off-by: Victoria Bialas <victoria.bialas@docker.com>
* coypedit
Signed-off-by: Victoria Bialas <victoria.bialas@docker.com>
* improve Compose rails sample
Signed-off-by: Victoria Bialas <victoria.bialas@docker.com>
* updated file list and commands based on feedback for no skip-bundle
Signed-off-by: Victoria Bialas <victoria.bialas@docker.com>
* added, start, stop, rebuild info to Rails sample
Signed-off-by: Victoria Bialas <victoria.bialas@docker.com>
* updated info re: default Flask port for compose get started
Signed-off-by: Victoria Bialas <victoria.bialas@docker.com>
* more changes for rebuilding steps
Signed-off-by: Victoria Bialas <victoria.bialas@docker.com>
* added rebuild info
Signed-off-by: Victoria Bialas <victoria.bialas@docker.com>
* added info about Gemfile.lock to rebuild steps
Signed-off-by: Victoria Bialas <victoria.bialas@docker.com>
* Update to Rails 5, Ruby 2.3.3, remove therubyracer
Update packages to latest versions. The actual nodejs is installed on line 18. Changed to a general comment regarding the need to rebuild images when adding gems.
* update rails welcome screenshot to 5.0.0.1
In this example, database.yml uses the default value of `postgres` for the `database` key.
The database postgres is normally not used for user data, but for administrative purposes. This means people following this example will not be able to drop the database, and in general it's just not a great idea.