mirror of
https://github.com/storytold/artcraft.git
synced 2026-10-20 17:02:53 -04:00
This is a fresh start for the `artcraft` repo. The old monorepo, which included our web API gateway, job services, SRE tools, various frontends, and more has moved to `artcraft-services` You can find the full git history here: https://github.com/storytold/artcraft-services This change was motivated by the fact that the entire git history was hundreds of gigabytes in size, which is unwieldy for anyone not in the core team that doesn't care about support services outside of the core artcraft app. We wanted to keep this repo in its well-known place since we already have users and activity here. Please update your remotes to either `artcraft-services` or make a fresh clone of this repo. History can be found at the artcraft-services repo.
33 lines
738 B
Bash
Executable File
33 lines
738 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# This works on Linux and MacOS to launch the frontend dev server
|
|
|
|
root_dir=$(pwd)
|
|
frontend_path="${root_dir}/frontend"
|
|
|
|
source "${root_dir}/script/common/frontend_preflight.sh"
|
|
frontend_preflight "${frontend_path}"
|
|
|
|
echo "Running Artcraft Frontend in Dev Mode..."
|
|
echo ""
|
|
|
|
echo "You'll need to launch the Rust dev server as a second script!"
|
|
echo ""
|
|
|
|
# Kill any process running on port 5741, which will block startup
|
|
if lsof -i tcp:5173 &>/dev/null; then
|
|
lsof -i tcp:5173 -t | xargs kill -9
|
|
echo "Killed process running on port 5173"
|
|
else
|
|
echo "No process running on port 5173"
|
|
fi
|
|
|
|
pushd "${frontend_path}" || exit
|
|
|
|
frontend_npm_install
|
|
|
|
export VITE_ENVIRONMENT_TYPE="production"
|
|
|
|
nx dev artcraft
|
|
|
|
popd || exit
|