Skip to content

Commit

Permalink
Replace python3 http server with npm http-server
Browse files Browse the repository at this point in the history
  • Loading branch information
Yassen Damyanov committed Jul 20, 2021
1 parent 98e03c6 commit 4c823b9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ cargo-lock:

# Start development server; build debug and run
dev: cargo-lock
yarn tauri dev
yarn tauri dev; kill $$(ps ax | awk '/http-server/ && !/awk/ {print $$1}')


.PHONY: init clean cargo-lock dev
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@
"devDependencies": {
"@tauri-apps/api": "^1.0.0-beta.5",
"@tauri-apps/cli": "^1.0.0-beta.6"
},
"dependencies": {
"http-server": "^0.12.3"
}
}
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"build": {
"distDir": "../www",
"devPath": "http://localhost:8000",
"beforeDevCommand": "python3 -m http.server -d www/",
"beforeDevCommand": "yarn http-server -p 8000 -c-1 www/",
"beforeBuildCommand": "",
"withGlobalTauri": true
},
Expand Down

0 comments on commit 4c823b9

Please sign in to comment.