Commit 8d208d32 authored by Carlo Landmeter's avatar Carlo Landmeter

update readme

parent d349e457
# aports-turbo
Alpine Linux package database written in Lua.
This application makes use of the Turbo (Lua) framework. You can find more information about Turbo at: http://turbolua.org
This application makes use of the [Turbo](http://turbolua.org) (Lua) framework.
On Alpine Linux it should be enough to install turbo and deps by:
apk add luajit lua-turbo lua-sqlite lua-lustache lua-socket lua-cjson
apk add luajit lua5.1 lua-turbo lua-sqlite lua-lustache lua-socket
Copy config.sample.lua to config.lua and edit it.
You can start the application by starting ./aporst.lua or on Alpine Linux with turbo's init.d (see conf.d/turbo for settings)
#### Creating/updating the database
aports-turbo uses an sqlite database which is generated (check config to init tables) and updated by import.lua found in the tools directory. import.lua needs to be run from the root of aports-turbo project. You can for example run it from cron by creating a file like:
/etc/periodic/15min/alpine-turbo
copy conf.lua.default to conf.lua and provide defaults
```shell
#!/bin/sh
execute: ./aports.lua
webdir="/var/www/aports-turbo"
A webserver should be listening on configured port.
cd $webdir && luajit tools/import.lua > /dev/null 2>&1
```
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment