mirror of
https://github.com/spacebarchat/server.git
synced 2026-12-03 15:54:12 +00:00
Fix module resolution when $CWD != .
This commit is contained in:
1 parent
168758924c
commit
2feb90475e
8 files changed
+22
-4
No files matched your search
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i "bash -x" -p bash jq git nodejs
|
||||
npm i
|
||||
npm run setup || exit 1
|
||||
|
||||
export OWD="$PWD"
|
||||
export NWD="`mktemp -d`"
|
||||
echo "Src dir: $OWD"
|
||||
echo "Exec dir: $NWD"
|
||||
|
||||
#NODE_PATH="$OWD/dist"
|
||||
node "$OWD/dist/api/start.js"
|
||||
Reference in new issue
Block a user