https://github.com/penge/railscompositionlight
https://github.com/penge/railscompositionlight
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/penge/railscompositionlight
- Owner: penge
- Created: 2017-05-16T01:31:02.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-16T01:43:06.000Z (about 9 years ago)
- Last Synced: 2025-01-30T11:11:07.263Z (over 1 year ago)
- Language: Ruby
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RailsCompositionLight
### Generate the Rails skeleton app
```
$ docker-compose run web rails new . --force --skip-bundle
```
First, Compose will build the image for the web service using the Dockerfile.
Then it'll run rails new inside a new container, using that image.
Once it's done, you should have generated a fresh app.
### If you edit Gemfile at this point or later, you will need to build the image again
```
$ docker-compose build
```
### Boot the app with
```
$ docker-compose up
```
### To run Rails Console
```
$ docker-compose run web rails c
```