+ QOL Build scripts
This commit is contained in:
parent
64d3253b90
commit
bb69c37a5a
17
scripts/build-all.sh
Normal file
17
scripts/build-all.sh
Normal file
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
pushd ts
|
||||
npm run build
|
||||
popd
|
||||
|
||||
cargo build --release
|
||||
|
||||
mkdir -p build/
|
||||
|
||||
cp target/release/api build/server
|
||||
cp api/templates/ build/ -r
|
||||
cp api/static/ build -r
|
||||
|
||||
bash ./scripts/default-rocket-toml.sh
|
3
scripts/build-registry-image.sh
Normal file
3
scripts/build-registry-image.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
docker build -t registry.gitlab.com/shockrah/clippable .
|
||||
docker push registry.gitlab.com/shockrah/clippable
|
@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo Copying in default configuration for web server
|
||||
cat << EOF > build/rocket.toml
|
||||
cat << EOF > build/Rocket.toml
|
||||
[production]
|
||||
address = "0.0.0.0"
|
||||
port = 8482
|
||||
|
Loading…
Reference in New Issue
Block a user