dayzdockerserver/web/start.sh
Daniel Ceregatti fd1774cf1c Begin large refactor of Vue to move it into a proper development environment:
No more CNDs. All software is now bundled and served from a proper node-based development server.
Switch to using proper Vue files, so we can have proper IDE integration.
Open new port for the dev server mentioned above.
Split status and mod info requests in the back end.
Bypass CORS while developing.
2023-06-05 11:14:24 -07:00

19 lines
316 B
Bash
Executable file

#!/usr/bin/env bash
# Set PS1 so we know we're in the container
if ! [ -f .bashrc ]
then
echo "Creating .bashrc..."
cat > .bashrc <<EOF
alias ls='ls --color'
export PS1="${debian_chroot:+($debian_chroot)}\u@dz-web:\w\$ "
EOF
fi
cd /web
npm i
export DEBUG='express:*'
npx nodemon web.js &
cd docroot
npm run dev