Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
1
1-getting-started-with-rails
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
mis-21-2018-intersession
1-getting-started-with-rails
Commits
f10ebe33
Commit
f10ebe33
authored
Jun 05, 2018
by
John Noel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.md
parent
f8e35d9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
2 deletions
+27
-2
README.md
README.md
+27
-2
No files found.
README.md
View file @
f10ebe33
...
@@ -23,14 +23,39 @@ cd sample_app
...
@@ -23,14 +23,39 @@ cd sample_app
chmod
+x start
chmod
+x start
```
```
*
Make sure to re-initialize own Git repository
```
bash
rm
-rf
.git
git init
```
*
Build and start Docker containers
*
Build and start Docker containers
```
bash
```
bash
docker-compose build
docker-compose build
docker-compose up
docker-compose up
```
```
**Note**
: During the first run, this will take a while. Proceed with the next steps ONLY after a similar message shows up.
```
bash
sample_app_web_1 exited with code 0
```
*
Run this command to identify the current directory
```
bash
pwd
```
**Note**
: Take note of output of this command. This shall serve as an input value to the next command.
*
Open another Terminal (Mac/Unix) / Powershell (Windows).
*
Go inside the project directory.
```
bash
cd
<
command
output of the previous
command
>
```
*
Open another Terminal (Mac/Unix) / Powershell (Windows)
*
Stop Docker containers
*
Stop Docker containers
```
bash
```
bash
...
@@ -44,7 +69,7 @@ docker-compose run web rails new . --force --database=postgresql
...
@@ -44,7 +69,7 @@ docker-compose run web rails new . --force --database=postgresql
```
```
**Notes**
: You can remove
``--database=postgresql``
if a different database engine will be used.
**Notes**
: You can remove
``--database=postgresql``
if a different database engine will be used.
*
S
tart again Docker containers
*
In one of the two opened Terminal (Mac/Unix) / Powershell (Windows), s
tart again Docker containers
```
bash
```
bash
docker-compose up
docker-compose up
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment