Skip to content

danbruder/juniper-up

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Juniper/Rust + Apex Up

This is an example of running a Juniper application on up.

screenshot.jpg

Requirements

  • up
  • docker
  • rust toolchain

Getting Started

git clone git@github.com: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

Deployment

up deploy

Releases

No releases published

Packages

No packages published

Languages