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
- Host: GitHub
- URL: https://github.com/neuwcodebox/hello-rocket
- Owner: neuwcodebox
- Created: 2018-10-03T10:29:52.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-03T10:58:41.000Z (over 7 years ago)
- Last Synced: 2025-06-21T05:06:49.795Z (8 months ago)
- Topics: heroku, herokuapp, rocket-rs, rust, web-server
- Language: Rust
- Size: 24.4 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.