Skip to content

Latest commit

 

History

History
57 lines (43 loc) · 1.35 KB

README.md

File metadata and controls

57 lines (43 loc) · 1.35 KB

rails-starter-kit-with-docker

You can create a rails app on docker with only 3 commands.

Screenshot

screenshot

Usage

Assumptions

I suppose that you already have docker machine. If you don't have it, please install it.

And also, you're at the project root directory like new-app. If you haven't been yet, type following commands.

mkdir new-app
cd new-app/

1. Clone this repository to your new app directory

git clone [email protected]:n350071/rails-starter-kit-with-docker.git

2. Copy build files

sh rails-starter-kit-with-docker/cp_build_file.sh

You can rename the app name from myapp with replace command. There is a CAPITAL MYAPP, so take care of it.

3. Initialize your new project

make init-project

It starts rails and you can check it by http://localhost:3000. when you want to stop your docker, please type

make stop

Option

You can off the comment at # - ./vendor/bundle:/usr/local/bundle in docker-compose.yml. So you can save the bundled gems in your directory.

Help

make help