To host an application on Container Hosting Rust
, you must complete the following three steps.
If your project files are in a Git repository, then installing the utility is not necessary, since you can run the project from the browser.
If you installed the conhos utility earlier, then simply proceed to the next step. If not installed, then use Instructions to install.
If your project files are in a Git repository, you can create a configuration file from your browser.
Configuration file for creating the Rust
service in Container Hosting. More details in Configuration File.
Check the current version of the
Rust
container in the official Rust repository
name: my-rust-project
services:
rust0:
image: rust
size: mili
active: true
pwd: examples/rust
exclude:
- target
version: latest
command: cargo build --release && ./target/release/main
ports:
- port: 3000
type: proxy
environment:
- PORT=3000
To upload files to the cloud and run services in containers, run the command:
conhos deploy
Continue studying