You can create a rails app on docker with only 3 commands.
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/
git clone [email protected]:n350071/rails-starter-kit-with-docker.git
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.
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
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.
make help