A website for managing a turn-based warfare game in Kerbal Space Program.
Very work-in-progress, but functional.
- Install prerequisites. (OpenResty, PostgreSQL, luarocks, moonscript, Lapis)
- Setup database(s).
(for production:
kss_live
, for development:kss_dev
) - Create
secret.moon
with database password and a secret string. (seesecret.moon.example
for an example) - Place SSL certificate in
ssl/
. (public:fullchain.pem
, private:privkey.pem
) - Compile moonscript files.
(run
moonc .
) - Run migrations.
(run
lapis migrate [env]
(env isproduction
ordevelopment
)) - Start the server.
(run
lapis server [env]
(same environments)) - Log into the default admin account and change its password.
(username:
admin
, passwordchangeme
)
If you fuck up and lose the postgres
password...
sudo -i -u postgres
psql
ALTER USER postgres WITH PASSWORD 'new_password';
\q
exit
And now it's fixed.