feat: deployment #46

Merged
matous-volf merged 11 commits from feat/deployment into main 2024-09-13 10:42:20 +00:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 76dc47fcdb - Show all commits
docker/dev/app
src

@ -1,5 +1,3 @@
#!/bin/bash
diesel migration run
supervisord -c /etc/supervisor/conf.d/supervisord.conf

@ -17,7 +17,9 @@ fn main() {
dioxus_logger::init(Level::INFO).expect("Failed to initialize the logger.");
info!("Running migrations.");
migrations::run_migrations().expect("Failed to run migrations.");
server_only!(
migrations::run_migrations().expect("Failed to run migrations.");
);
info!("Starting app.");
let cfg = server_only!(