similar console addition to passwd0
This commit is contained in:
parent
5b133e6998
commit
fe92a3543d
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +0,0 @@
|
||||
db/
|
@ -1 +1,3 @@
|
||||
FROM guard13007/docker-lapis:latest
|
||||
|
||||
RUN luarocks install lapis-console
|
||||
|
4
app.moon
4
app.moon
@ -1,4 +1,5 @@
|
||||
lapis = require "lapis"
|
||||
console = require "lapis.console"
|
||||
|
||||
import Sessions, Deltas from require "models"
|
||||
import api, abort from require "helpers"
|
||||
@ -41,5 +42,8 @@ fns = {
|
||||
}
|
||||
|
||||
class extends lapis.Application
|
||||
[console: "/console/#{config.secret}"]: =>
|
||||
return console.make(env: "all")(@)
|
||||
|
||||
[session: "/0/:id[a-fA-F%d]"]: api fns
|
||||
[new_session: "/0/new"]: api fns
|
||||
|
15
run
15
run
@ -1,15 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
docker stop dt0
|
||||
docker rm dt0
|
||||
docker stop dt-db
|
||||
docker rm dt-db
|
||||
docker network create web
|
||||
docker network create dt-db
|
||||
|
||||
docker build -t dt0 .
|
||||
docker run -d --restart always --name dt-db --network dt-db \
|
||||
-v "$PWD/db":/var/lib/postgresql/data postgres:10.5-alpine
|
||||
sleep 5 # give Postgres time to start
|
||||
docker run -d --restart always --name dt0 --network dt-db \
|
||||
dt0:latest
|
||||
docker network connect web dt0
|
Loading…
Reference in New Issue
Block a user