Skip to content

bestony/runs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docked Rails CLI(runs)

Setting up Rails for the first time with all the dependencies necessary can be daunting for beginners. Docked Rails CLI uses a Docker image to make it much easier, requiring only Docker to be installed.

Features

  • Ruby 3.2.2
  • PostgreSQL Support
  • Node.js 20 Support

Install

Install Docker (and WSL on Windows). Then copy'n'paste into your terminal:

docker volume create ruby-bundle-cache
alias runs='docker run --rm -it -v ${PWD}:/rails -v ruby-bundle-cache:/bundle -p 3000:3000 ghcr.io/bestony/runs'

Usage

Then create your Rails app:

runs rails new weblog
cd weblog
runs rails generate scaffold post title:string body:text
runs rails db:migrate
runs rails server

That's it! Your Rails app is running on http://localhost:3000/posts.

Sidenote

runs is not intended to replace a full development setup. It is merely a way for newcomers to quickly get started with Rails. The included dependencies stick to what you need when running rails new without additional options. It does not include dependencies for running with PostgreSQL or Redis for example.

Credit

Forked from rails/docked

About

Running Rails from Docker for easy start to development-> rename to runs

Resources

License

Stars

Watchers

Forks

Languages

  • Dockerfile 91.1%
  • Shell 8.9%