Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Latest commit

 

History

History
29 lines (20 loc) · 799 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 799 Bytes

luna

A blog engine written in Lua and powered by Lapis, Fomantic-UI & Trumbowyg.

Installation

Lapis, OpenResty and PostgreSQL are assumed to be installed.

  1. PostgreSQL -

Create Database

  1. Login as postgres. (su postgres)
  2. Run psql.
  3. Create user (luna_user).
    • CREATE USER luna_user WITH PASSWORD 'luna_user';
  4. Create database (luna_blog).
    • CREATE DATABASE luna_blog OWNER luna_user;

Application Setup

  1. Review migrations.lua and update the username/password combination.
  2. Run lapis migrate.
  3. Install md5 & luafilesystem.
    • sudo luarocks install md5
    • sudo luarocks install luafilesystem
  4. Start luna_blog.
    • sudo lapis server