Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ruiokazaki-archive/rails-docker
ローカルの環境を汚したくないのでrailsの環境作った
https://github.com/ruiokazaki-archive/rails-docker
Last synced: 3 days ago
JSON representation
ローカルの環境を汚したくないのでrailsの環境作った
- Host: GitHub
- URL: https://github.com/ruiokazaki-archive/rails-docker
- Owner: ruiokazaki-archive
- Created: 2022-02-15T08:36:23.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-02-15T12:36:32.000Z (over 2 years ago)
- Last Synced: 2024-02-02T02:50:32.053Z (9 months ago)
- Language: Dockerfile
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## rails new
```
docker-compose run web rails new . --force --database=mysql --skip-bundle
```## docker-compose build
```
docker-compose build
```## config/database.yml
```
password: pass
host: db
```## コンテナを起動
```
docker-compose up -d
```## データベースを作成
```
docker-compose exec web rails db:create
```## rails コマンド
```
docker-compose exec web bash
```## コンテナの停止
```
docker-compose down
```