feat: lamassu initial dockerize approach
feat: improve dockerization feat: finished initial versions of dockerfiles fix: small fixes to image building
This commit is contained in:
parent
b0860cdea5
commit
bd82285ecf
14 changed files with 484 additions and 20 deletions
15
tools/check-user-count.js
Normal file
15
tools/check-user-count.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
const path = require('path')
|
||||
require('dotenv').config({ path: path.resolve(__dirname, '../.env') })
|
||||
const db = require('../lib/db')
|
||||
|
||||
const getCount = () => {
|
||||
return db.one(`SELECT COUNT(*) FROM users`)
|
||||
.then(res => {
|
||||
process.stdout.write(res.count)
|
||||
process.exit(0)
|
||||
})
|
||||
}
|
||||
|
||||
getCount()
|
||||
Loading…
Add table
Add a link
Reference in a new issue