Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryosk7/zapaan-server
https://github.com/ryosk7/zapaan-server
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/ryosk7/zapaan-server
- Owner: ryosk7
- Created: 2020-04-19T18:42:07.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-03T16:23:47.000Z (about 4 years ago)
- Last Synced: 2024-10-18T19:55:01.595Z (3 months ago)
- Language: Ruby
- Size: 93.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Setup
## first setup
### git clone & move files
```
$ git clone [email protected]:ryosk7/rails_on_docker_seed.git
$ mv ./rails_on_docker_seed/* ./
$ mv ./rails_on_docker_seed/.* ./
$ rm -rf rails_on_docker_seed
$ rm -rf .git
$ git init
# If you want to use commit template, you can use this. (This commit template is written in Japanese.)
$ git config --local commit.template ./.commit_template
$ docker-compose build
$ docker-compose run back rails new . -d mysql -T
```
### You should edit database.yml
Like this!
```
- username: root
- password:
- host: localhost
+ username: root
+ password: root
+ host: db
```
### Run Rails server
```
$ docker-compose build
$ docker-compose run back rails db:create
$ docker-compose down
$ docker-compose up -d
$ docker attach rails_server
```