This repository is an example of how you can deploy a cronjob to Shuttle, the Rust-native dev cloud platform.
Make sure you have cargo-shuttle
installed! If not, you can use cargo install cargo-shuttle
to do so. Requires Rust 1.70+ installed.
Run the following to initialise this project:
cargo shuttle init --from shuttle-hq/shuttle-examples --subfolder shuttle-cron
Follow the prompt, then make any changes you want. Once done, you can deploy:
cargo shuttle deploy
# use this if on a dirty Git branch
cargo shuttle deploy --allow-dirty