Skip to content

miyake13000/quote

Repository files navigation

Quote

Simple Blog Server by Ruby on Rails

Setup

  1. Clone this repository
git clone https://github.com/miyake13000/quote.git
  1. Create your own home.html to public
  • minimal configuration
    echo "<!doctype html><html><body><h1>Hello world</h1></body></html>" > public/home.html
  1. Install specific Ruby version
  • Install Ruby specified with .ruby-version
  1. Install dependencies
bundle config set path "vendor/bundle" && bundle install
  1. Bring master.key
  • Bring master.key for credentials.yml.enc and put config/
  • Or if you lost master.key, reset credentials.yml.enc
  1. Setup storage
RAILS_ENV=production ./bin/rails db:prepare
  1. Setup assets
RAILS_ENV=production ./bin/rails assets:precompile

Optional: You can use docker compose

  1. Install Docker: see HP
  2. Do above 1, 2 and 4

Usage

Start with native Ruby

rails -e production server -b 0.0.0.0 -p 80

Start with Docker compose

docker compose up

About

Simple posting server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published