Skip to content

ftzahao/rust-class-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

这是一个我个人学习练手的 rust web 项目

  • 技术:rust + actix-web + sqlite

  • 安装 watchexec-clicargo install watchexec-cli

  • 开发: watchexec -w src -r cargo run

  • 部署:

    • 打包: 先执行 cargo cleancargo build
    • target/release/rust-class-webconfig/app.toml 以及依赖的文件放到同一目录下,然后进入该目录
    • 查询 PID: lsof -i:8001
    • 假设查询到的 PID 为 79291,停止进程: kill -9 79291
    • 如果无权限: chmod 777 rust-class-web
    • 运行: sudo nohup ./rust-class-web &
    • OK!
  • 配置相关:

About

练习使用 rust 写的后台系统

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages