This is an example of running a Juniper application on up.
- up
- docker
- rust toolchain
git clone [email protected]:danbruder/juniperup.git MY_APP_NAME
cd MY_APP_NAME
Edit up.json
replacing MY_APP_NAME with your app name. Adjust profile if necessary as well as other Up options.
{
"name": "MY_APP_NAME",
"profile": "up",
"hooks": {
"build": [
"docker run -v ~/.cargo:/cargo_data -e CARGO_HOME=/cargo_data -v $PWD:/volume -w /volume -t clux/muslrust cargo build --release",
"cp target/x86_64-unknown-linux-musl/release/MY_APP_NAME server"
],
"clean": "rm server"
}
}
Edit Cargo.toml
name and authors.
[package]
name = "MY_APP_NAME"
version = "0.1.0"
authors = ["MY NAME AND EMAIL"]
... OTHER CONFIG HERE
up deploy