Skip to content

versun/VersunCMS

Repository files navigation

VersunCMS

My CMS for my website.

This won't work out of the box for anyone else, but you're welcome to take a look at the code to see how it works.

Requirements

  • Ruby 3.x
  • SQLite3
  • Docker (for production deployment)

Development

  1. Install dependencies:

    bundle install
  2. Setup the database:

    bin/rails db:prepare
  3. Start the development server:

    bin/dev

Environment Variables

The following environment variables are required for production:

SECRET_KEY_BASE=

Docker

To build and run the application using Docker Compose:

docker-compose up --build

Deployment

Use the provided Dockerfile to build and deploy the application.

Volume Mounts

For data persistence, you need to mount the following directories:

  • /rails/storage: For storing uploaded files and assets