8000 GitHub - jayroh/once-again: A small toy app
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

jayroh/once-again

Repository files navigation

README

System dependencies

Ruby version 3.3.0

Other dependencies:

  • libglib2.0-0
  • libglib2.0-dev
  • libjpeg62-turbo-dev
  • libpng-dev
  • libvips
  • imagemagick

(Everything already set up if using docker)

How to run the test suite

./bin/rake

Running locally

66EC
./bin/setup
./bin/rails server

Deployment

With docker-compose

Generate SECRET_KEY_BASE and RAILS_MASTER_KEY with openssl (see below) and assign to the ENV's in docker-compose environment. You can also mount a .env file with volumes. That should work.

version: "3.8"

services:
  once_again:
  image: jayroh/once-again:v1.2
  container_name: once_again
  restart: unless-stopped

  # expose port 3000 to internal network
  expose:
    - 3000

  # map internal port 3000 to host port 3000
  # ports:
  #   - "3000:3000"

  # map local dirs to host filesystem
  volumes:
    - "./data/once_again/tmp/images:/rails/tmp/images"

  # generate via `openssl`
  environment:
    SECRET_KEY_BASE: ... # `openssl rand -hex 128`
    RAILS_MASTER_KEY: ...# `openssl rand -hex 32`

About

A small toy app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0