/luna

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

Primary LanguageLuaMIT LicenseMIT

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