Compare commits

...

2 Commits

Author SHA1 Message Date
11a96f4091 Merge pull request 'update docs' (#263) from staging into main
All checks were successful
CI/CD Pipeline / test (push) Successful in 9m43s
CI/CD Pipeline / deploy-staging (push) Has been skipped
CI/CD Pipeline / deploy-main (push) Successful in 4m35s
Reviewed-on: #263
2024-03-15 10:06:06 +01:00
5e24f9ce04 update docs
All checks were successful
CI/CD Pipeline / test (push) Successful in 9m47s
CI/CD Pipeline / deploy-staging (push) Successful in 4m38s
CI/CD Pipeline / deploy-main (push) Has been skipped
2024-03-15 09:54:36 +01:00
3 changed files with 31 additions and 4 deletions

View File

@ -22,3 +22,25 @@
- Rust: `cargo check` - Rust: `cargo check`
- Tera files: `djlint **.html.tera --profile=jinja --reformat` - Tera files: `djlint **.html.tera --profile=jinja --reformat`
- Typescript: `prettier -w *.ts` - Typescript: `prettier -w *.ts`
# Dependencies
- `sqlite3`
- `rust`
# Nginx config
```
server {
server_name staging.rudernlinz.at;
location / {
proxy_pass http://localhost:7999/; # The / is important!
}
}
server {
server_name app.rudernlinz.at;
location / {
proxy_pass http://localhost:8001/; # The / is important!
}
}
```

View File

@ -4,12 +4,15 @@ Description=Rot
[Service] [Service]
User=root User=root
Group=root Group=root
WorkingDirectory=/home/philipp/rowing WorkingDirectory=/home/rowing
Environment="ROCKET_ENV=prod" Environment="ROCKET_ENV=prod"
Environment="ROCKET_ADDRESS=127.0.0.1" Environment="ROCKET_ADDRESS=127.0.0.1"
Environment="ROCKET_PORT=8001" Environment="ROCKET_PORT=8001"
Environment="RUST_LOG=info" Environment="RUST_LOG=info"
ExecStart=/home/k004373/rowing/rot ExecStart=/home/rowing/rot
Restart=always
RestartSec=10
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View File

@ -4,12 +4,14 @@ Description=Rot Staging
[Service] [Service]
User=root User=root
Group=root Group=root
WorkingDirectory=/home/philipp/rowing-staging WorkingDirectory=/home/rowing-staging
Environment="ROCKET_ENV=prod" Environment="ROCKET_ENV=prod"
Environment="ROCKET_ADDRESS=127.0.0.1" Environment="ROCKET_ADDRESS=127.0.0.1"
Environment="ROCKET_PORT=7999" Environment="ROCKET_PORT=7999"
Environment="ROCKET_LOG=info" Environment="ROCKET_LOG=info"
ExecStart=/home/philipp/rowing-staging/rot ExecStart=/home/rowing-staging/rot
Restart=always
RestartSec=10
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target