-
技术:rust + actix-web + sqlite
-
安装
watchexec-cli
:cargo install watchexec-cli
-
开发:
watchexec -w src -r cargo run
-
部署:
- 打包: 先执行
cargo clean
在cargo build
- 把
target/release/rust-class-web
和config/app.toml
以及依赖的文件放到同一目录下,然后进入该目录 - 查询 PID:
lsof -i:8001
- 假设查询到的 PID 为 79291,停止进程:
kill -9 79291
- 如果无权限:
chmod 777 rust-class-web
- 运行:
sudo nohup ./rust-class-web &
- OK!
- 打包: 先执行
-
配置相关:
- 需要同目录下创建 config/app.toml 文件
-
Notifications
You must be signed in to change notification settings - Fork 0
练习使用 rust 写的后台系统
License
ftzahao/rust-class-web
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
练习使用 rust 写的后台系统
Resources
License
Contributing
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published