File tree Expand file tree Collapse file tree 1 file changed +20
-15
lines changed Expand file tree Collapse file tree 1 file changed +20
-15
lines changed Original file line number Diff line number Diff line change 1
1
# README
2
2
3
- This README would normally document whatever steps are necessary to get the
4
- application up and running.
3
+ Learn how to use docker / docker compose to create and run rails application.
5
4
6
- Things you may want to cover:
5
+ Episode video link
7
6
8
- * Ruby version
7
+ ## Tested on
9
8
10
- * System dependencies
9
+ * Mac OSX - 10.10.5
10
+ * Docker - 1.12.1
11
+ * Docker compose - 1.8.0
11
12
12
- * Configuration
13
+ ## Instructions / commands
13
14
14
- * Database creation
15
+ ```
16
+ mkdir ~/projects/noteapp
17
+ # Create Gemfile
18
+ # Create Dockerfile
19
+ # Create docker-compose.yml
20
+ docker-compose run app rails new . --force --database=mysql --skip-bundle
21
+ docker-compose build
22
+ docker-compose up
23
+ # http://localhost:3001
24
+ docker-compose run --rm app rails g scaffold note title body:text
25
+ docker-compose run --rm app rake db:migrate
26
+ # http://localhost:3001/notes
27
+ ```
15
28
16
- * Database initialization
17
29
18
- * How to run the test suite
19
-
20
- * Services (job queues, cache servers, search engines, etc.)
21
-
22
- * Deployment instructions
23
-
24
- * ...
You can’t perform that action at this time.
0 commit comments