This website works better with JavaScript.
Home
Help
Sign In
dingens
/
bampersand
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Add DB path configuration
master
Cassidy Dingenskirchen
10 months ago
parent
2ba5a76e4c
commit
355a672f8e
Signed by:
StDingenskirchen
GPG Key ID:
14FE9712CC42FE8B
2 changed files
with
3 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
.env.example
+1
-1
src/Init.cr
+ 2
- 0
.env.example
View File
@ -10,3 +10,5 @@ admin = 12345678910
#either 'prod' or 'dev'
runas = dev
dbfile = ./bampersand.db
+ 1
- 1
src/Init.cr
View File
@ -14,7 +14,7 @@ Dotenv.load!
VERSION
=
`
shards version
`
.
chomp
STARTUP
=
Time
.
monotonic
DATABASE
=
DB
.
open
"
sqlite3:
//./bampersand.sqlite3
"
DATABASE
=
DB
.
open
"
sqlite3:
#{
ENV
[
"
dbfile
"
]
}
"
SHUTDOWN
=
-
>
(
s
:
Signal
)
{
LOG
.
fatal
"
Received
#{
s
}
"
Write
Preview
Loading…
Cancel
Save