Alexey Velikiy
3 years ago
6 changed files with 39 additions and 4 deletions
@ -0,0 +1,19 @@ |
|||||||
|
all: server client |
||||||
|
mkdir release
|
||||||
|
cp server/target/x86_64-unknown-linux-musl/release/hastic release
|
||||||
|
mkdir release/public
|
||||||
|
cp -r client/dist/* release/public/
|
||||||
|
|
||||||
|
|
||||||
|
server: |
||||||
|
cd server;cargo build --release --target x86_64-unknown-linux-musl
|
||||||
|
|
||||||
|
client client/dist: |
||||||
|
cd client;yarn build
|
||||||
|
|
||||||
|
clean: |
||||||
|
rm -r release
|
||||||
|
rm -r client/dist
|
||||||
|
rm -r server/target/release
|
||||||
|
|
||||||
|
.PHONY: server client all |
@ -1,2 +1,14 @@ |
|||||||
# Hastic |
# Hastic |
||||||
|
|
||||||
|
## Build release |
||||||
|
|
||||||
|
``` |
||||||
|
make |
||||||
|
``` |
||||||
|
|
||||||
|
``` |
||||||
|
cd release |
||||||
|
./hastic |
||||||
|
``` |
||||||
|
|
||||||
|
open `http://localhost:8000` in browser |
||||||
|
Loading…
Reference in new issue