rails/docked
Fork: 61 Star: 1306 (更新于 2024-11-03 06:19:09)
license: MIT
Language: Dockerfile .
Running Rails from Docker for easy start to development
Docked Rails CLI
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.
Install Docker (and WSL on Windows). Then copy'n'paste into your terminal:
docker volume create ruby-bundle-cache
alias docked='docker run --rm -it -v ${PWD}:/rails -u $(id -u):$(id -g) -v ruby-bundle-cache:/bundle -p 3000:3000 ghcr.io/rails/cli'
Then create your Rails app:
docked rails new weblog
cd weblog
docked rails generate scaffold post title:string body:text
docked rails db:migrate
docked rails server
That's it! Your Rails app is running on http://localhost:3000/posts
.
Sidenote
docked
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.
最近版本更新:(数据更新于 2024-10-04 02:11:52)
rails/docked同语言 Dockerfile最近更新仓库
2024-11-20 14:55:14 linuxserver/docker-jackett
2024-09-19 09:59:26 linuxserver/docker-calibre-web
2024-09-18 14:54:29 linuxserver/docker-calibre
2024-08-26 19:44:48 jaywcjlove/reference
2024-08-26 05:44:32 librenms/docker
2024-08-21 14:40:31 linuxserver/docker-adguardhome-sync