An open API service indexing awesome lists of open source software.

https://github.com/neuwcodebox/hello-rocket

https://hello-rocket.herokuapp.com
https://github.com/neuwcodebox/hello-rocket

heroku herokuapp rocket-rs rust web-server

Last synced: 4 months ago
JSON representation

https://hello-rocket.herokuapp.com

Awesome Lists containing this project

README

          

# hello-rocket

Hello for the [Rocket](https://rocket.rs) library and [Heroku](https://heroku.com) with Rust!

## Setup

1. Clone this repo.
> git clone https://github.com/NeuroWhAI/hello-rocket.git

2. Go to 'hello-rocket' directory.
> cd hello-rocket

3. Set nightly version.
> rustup override set nightly

4. Create app project on [Heroku](https://heroku.com).

5. Connect to app.
> heroku login
> heroku git:remote -a existing-project-name

6. Set buildpack.
> heroku buildpacks:set https://github.com/emk/heroku-buildpack-rust.git

## Build & Run

1. Build with cargo.
> cargo build

2. Run.
> cargo run

3. Open 'http://localhost:8000'.

## Deploy

1. Commit new change.
> git add .
> git commit -m "Change something"

2. Push to Heroku.
> git push heroku master

3. Wait for the deployment to complete.

## Custom

- Edit whatever you want.
- You can change compiler version in Heroku by modifying the 'rust-toolchain' file.