https://github.com/dennis-every/weblog
Test drive Docked Rails CLI
https://github.com/dennis-every/weblog
Last synced: 4 months ago
JSON representation
Test drive Docked Rails CLI
- Host: GitHub
- URL: https://github.com/dennis-every/weblog
- Owner: dennis-every
- Created: 2023-09-19T14:08:39.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-20T15:26:38.000Z (almost 2 years ago)
- Last Synced: 2025-01-21T17:28:05.504Z (6 months ago)
- Language: Ruby
- Size: 26.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# README
- Works like a charm
- Follow this: https://github.com/rails/docked
- Visit: http://localhost:3000/posts# Alternatively use a Dockerfile
- Add the Dockerfile to the root path
- Build the image
- `docker build -t weblog .`
- Run the image in a container with rails server
- `docker run --rm -it -v ${PWD}:/rails -v ruby-build-cache:/bundle -p 3000:3000 weblog rails server`
- Open rails console in this container
- `docker exec -it rails console`