File tree Expand file tree Collapse file tree 3 files changed +25
-3
lines changed Expand file tree Collapse file tree 3 files changed +25
-3
lines changed Original file line number Diff line number Diff line change
1
+ :8443 {
2
+ root * ./build
3
+ file_server
4
+ encode gzip
5
+
6
+ tls internal {
7
+ on_demand
8
+ }
9
+ }
Original file line number Diff line number Diff line change 3
3
"version" : " 0.0.1" ,
4
4
"private" : true ,
5
5
"scripts" : {
6
- "dev" : " vite dev" ,
7
6
"build" : " vite build" ,
8
- "preview" : " vite preview" ,
9
7
"check" : " svelte-kit sync && svelte-check --tsconfig ./tsconfig.json" ,
10
- "check:watch" : " svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch"
8
+ "check:watch" : " svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch" ,
9
+ "dev" : " vite dev" ,
10
+ "preview" : " vite preview" ,
11
+ "serve" : " ./serve.sh"
11
12
},
12
13
"devDependencies" : {
13
14
"@sveltejs/adapter-auto" : " ^3.0.0" ,
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -eo pipefail
3
+ function ee {
4
+ printf " \e[2m$ %s\e[0m\n" " $* "
5
+ eval " $@ "
6
+ }
7
+
8
+ echo ' Starting local Caddy web server.'
9
+ echo -e ' \e[1;35mURL: https://localhost:8443\e[0m'
10
+ echo -e ' \e[1;93mPress [Ctrl] + C to exit...\e[0m'
11
+
12
+ ee " docker run -v \"\$ (git rev-parse --show-toplevel):/http\" -w '/http' -p '8443:8443' caddy caddy run --config caddyfile"
You can’t perform that action at this time.
0 commit comments