Skip to content

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

Install Rust and MySQL

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh source ~/.cargo/env sudo apt install mysql-server mysql-client libmysqlclient-dev sudo systemctl start mysql sudo systemctl enable mysql

Create .env fil with your configuration

cp env.example .env

Install sqlx-cli for migrations

cargo install sqlx-cli --features mysql

Run migrations

sqlx migrate run --database-url "mysql://pudu_user:password@localhost/pudu"

Build and run

cargo run

Production

cargo build --release
cp ./target/release/pudu .

To run it as a service

  • Create pudu.service file into /lib/systemd/system
sudo systemctl daemon-reload
sudo systemctl start pudu
sudo systemctl enable pudu

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages