Simple Blog Server by Ruby on Rails
- Clone this repository
git clone https://github.com/miyake13000/quote.git- Create your own
home.htmlto public
- minimal configuration
echo "<!doctype html><html><body><h1>Hello world</h1></body></html>" > public/home.html
- Install specific Ruby version
- Install Ruby specified with
.ruby-version
- Install dependencies
bundle config set path "vendor/bundle" && bundle install- Bring
master.key
- Bring
master.keyforcredentials.yml.encand putconfig/ - Or if you lost
master.key, resetcredentials.yml.enc
- Setup storage
RAILS_ENV=production ./bin/rails db:prepare- Setup assets
RAILS_ENV=production ./bin/rails assets:precompile- Install Docker: see HP
- Do above 1, 2 and 4
rails -e production server -b 0.0.0.0 -p 80docker compose up