mirror of
https://github.com/seigler/awesome-dash-platform
synced 2025-07-27 06:36:08 +00:00
Add support for datasets
Not quite happy with the layout of these dataset items as they become to wide with the hash in the description area. Also the README.md seems to have changed order but changes were never commited. Also includes a fix to be able to run dev server on any port with the `PORT` environment variable. License: MIT Signed-off-by: Victor Bjelkholm <git@victor.earth>
This commit is contained in:
parent
e10ee74b87
commit
b2d4bb707c
5 changed files with 52 additions and 12 deletions
|
@ -46,7 +46,8 @@ async function run () {
|
|||
autoIndex: true
|
||||
})
|
||||
|
||||
http.createServer(ecstatic).listen(8080)
|
||||
const port = process.env.PORT || 8080
|
||||
http.createServer(ecstatic).listen(port)
|
||||
|
||||
const watcher = chokidar.watch([dataFolder, srcFolder], {
|
||||
ignored: (string) => string.indexOf('src/content') !== -1 ||
|
||||
|
@ -62,7 +63,7 @@ async function run () {
|
|||
})
|
||||
|
||||
watcher
|
||||
.on('ready', () => console.log('Listening on :8080'))
|
||||
.on('ready', () => console.log('Listening on :' + port))
|
||||
.on('add', handler)
|
||||
.on('change', handler)
|
||||
.on('unlink', handler)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue