forked from vfarcic/devspace-vcluster-argocd-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
devspace_start.sh
executable file
·37 lines (31 loc) · 1.05 KB
/
devspace_start.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
set +e # Continue on errors
export NODE_ENV=development
if [ -f "yarn.lock" ]; then
echo "Installing Yarn Dependencies"
yarn
else
if [ -f "package.json" ]; then
echo "Installing NPM Dependencies"
npm install
fi
fi
COLOR_CYAN="\033[0;36m"
COLOR_RESET="\033[0m"
echo -e "${COLOR_CYAN}
____ ____
| _ \ _____ __/ ___| _ __ __ _ ___ ___
| | | |/ _ \ \ / /\___ \| '_ \ / _\` |/ __/ _ \\
| |_| | __/\ V / ___) | |_) | (_| | (_| __/
|____/ \___| \_/ |____/| .__/ \__,_|\___\___|
|_|
${COLOR_RESET}
Welcome to your development container!
This is how you can work with it:
- Run \`${COLOR_CYAN}npm start${COLOR_RESET}\` to start the application
- Run \`${COLOR_CYAN}npm run dev${COLOR_RESET}\` to start hot reloading
- ${COLOR_CYAN}Files will be synchronized${COLOR_RESET} between your local machine and this container
- Some ports will be forwarded, so you can access this container on your local machine via ${COLOR_CYAN}localhost${COLOR_RESET}:
"
hugo server --port 80
bash