Skip to main content

Rocket

Rocket is a web framework for Rust. If you'd like, you can think of Rocket as being a more flexible, friendly medley of Rails, Flask, Bottle, and Yesod. We prefer to think of Rocket as something new. Rocket aims to be fast, easy, and flexible while offering guaranteed safety and security where it can. Importantly, Rocket also aims to be fun, and it accomplishes this by ensuring that you write as little code as needed to accomplish your task.

Check out their official documentation here

Deploy a Rocket App

Deployment Instructions

In this tutorial, we advice creating a Dockerfile and using Docker as the build system

  1. Fork/Clone this Hostless-Rocket-Example repo from github

  2. Click on 'Create New App'

  3. Choose a suitable app name

  4. Choose your github account

  5. Choose the forked github repo/the cloned remote repo

  6. Choose a build system

    1. 'Docker' - looks for a Dockerfile in the root of the project and build based on the instructions
  7. Input a start command(optional)

  8. The PORT environment variable is set by Hostless

Sample configuration

sample

Example project

An example project is hosted on https://hostless-rocket-example.hostless.app/