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
f8e35d9b
Commit
f8e35d9b
authored
Jun 05, 2018
by
John Noel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated README
parent
6fd1bb81
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
0 deletions
+57
-0
README.md
README.md
+57
-0
No files found.
README.md
View file @
f8e35d9b
# Getting Started with Rails, Docker
## Usage
*
Clone this repository
```
bash
# via SSH
git clone ssh://git@gitlab.discs.ateneo.edu:15316/mis-21-2018-intersession/1-getting-started-with-rails.git sample_app
# via HTTP
git clone https://gitlab.discs.ateneo.edu/mis-21-2018-intersession/1-getting-started-with-rails.git sample_app
```
**Note**
: You can replace the name of the project e.g.
``sample_app``
to any preferred project name.
*
Go inside the cloned repository
```
bash
cd
sample_app
```
*
Make sure that the
``start``
file is executable.
```
bash
chmod
+x start
```
*
Build and start Docker containers
```
bash
docker-compose build
docker-compose up
```
*
Open another Terminal (Mac/Unix) / Powershell (Windows)
*
Stop Docker containers
```
bash
docker-compose down
```
*
Create a new Rails project
```
bash
docker-compose run web rails new
.
--force
--database
=
postgresql
```
**Notes**
: You can remove
``--database=postgresql``
if a different database engine will be used.
*
Start again Docker containers
```
bash
docker-compose up
```
*
Create the
``development``
and
``test``
database
```
bash
docker-compose run web rails db:create
```
\ No newline at end of file
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