serve web
Some checks failed
ci/woodpecker/push/pipeline Pipeline failed

This commit is contained in:
sorrel 2024-04-30 17:54:06 -04:00
parent b2ae852f0b
commit cec08b5709
3 changed files with 24 additions and 21 deletions

0
.woodpecker/deploy.sh Normal file → Executable file
View file

View file

@ -1,5 +1,3 @@
name: ludo-go-pipeline
when: when:
branch: branch:
include: [ main ] include: [ main ]
@ -11,7 +9,7 @@ steps:
- cargo build --workspace -r - cargo build --workspace -r
- cargo test --verbose - cargo test --verbose
deploy: deploy:
image: alpine:latest image: alpine:latest
secrets: secrets:
- oxaliq_deploy_ssh - oxaliq_deploy_ssh

View file

@ -1,3 +1,8 @@
fn main() { use warp::Filter;
println!("Hello, world!");
#[tokio::main]
async fn main() {
let root = warp::path::end().map(|| "hello world");
warp::serve(root).run(([127, 0, 0, 1], 5000)).await;
} }