Compare commits
No commits in common. "39521bf284c9878809c35e65f034357a8113f59f" and "731a7aff4cd47093bf6f5da23c85209f51d9230d" have entirely different histories.
39521bf284
...
731a7aff4c
2
API/.gitignore
vendored
2
API/.gitignore
vendored
@ -1,3 +1 @@
|
|||||||
database.sqlite3*
|
database.sqlite3*
|
||||||
efbundle
|
|
||||||
|
|
||||||
|
@ -37,11 +37,9 @@ namespace API
|
|||||||
|
|
||||||
IConfiguration Configuration = builder.Configuration;
|
IConfiguration Configuration = builder.Configuration;
|
||||||
|
|
||||||
var connectionString = Configuration.GetConnectionString("DefaultConnection") ?? Environment.GetEnvironmentVariable("DEFAULT_CONNECTION");
|
var connectionString = Configuration.GetConnectionString("DefaultConnection") ?? Environment.GetEnvironmentVariable("DefaultConnection");
|
||||||
builder.Services.AddDbContext<AppDBContext>(options => options.UseSqlite(connectionString));
|
builder.Services.AddDbContext<AppDBContext>(options => options.UseSqlite(connectionString));
|
||||||
|
|
||||||
Console.WriteLine("Connecting to database with connection string: " + connectionString);
|
|
||||||
|
|
||||||
var app = builder.Build();
|
var app = builder.Build();
|
||||||
|
|
||||||
// Configure the HTTP request pipeline.
|
// Configure the HTTP request pipeline.
|
||||||
|
10
API/release.sh
Executable file
10
API/release.sh
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
dotnet publish -r linux-arm64 -p:PublishSingleFile=true --self-contained false
|
||||||
|
dotnet ef migrations bundle --self-contained -r linux-arm64 --force
|
||||||
|
|
||||||
|
rsync -va bin/Release/net8.0/linux-arm64/publish/* reimar@reim.ar:/home/reimar/skantravels
|
||||||
|
rsync -va efbundle reimar@reim.ar:/home/reimar/skantravels
|
||||||
|
|
||||||
|
ssh -t reimar@reim.ar "systemctl restart skantravels"
|
||||||
|
|
19
release.sh
19
release.sh
@ -1,19 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
cd API
|
|
||||||
dotnet publish -r linux-arm64 -p:PublishSingleFile=true --self-contained false
|
|
||||||
dotnet ef migrations bundle -r linux-arm64 --force
|
|
||||||
|
|
||||||
cd ../rust-backend
|
|
||||||
cargo build --release --target=aarch64-unknown-linux-gnu
|
|
||||||
|
|
||||||
cd ..
|
|
||||||
rsync -va \
|
|
||||||
rust-backend/target/aarch64-unknown-linux-gnu/release/skantravels \
|
|
||||||
API/efbundle \
|
|
||||||
API/bin/Release/net8.0/linux-arm64/publish/API \
|
|
||||||
API/bin/Release/net8.0/linux-arm64/publish/libe_sqlite3.so \
|
|
||||||
reimar@reim.ar:/home/reimar/skantravels
|
|
||||||
|
|
||||||
ssh -t reimar@reim.ar "systemctl restart skantravels && systemctl restart skantravels-rust"
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
|||||||
[target.aarch64-unknown-linux-gnu]
|
|
||||||
linker = "aarch64-linux-gnu-gcc"
|
|
||||||
|
|
1
rust-backend/Cargo.lock
generated
1
rust-backend/Cargo.lock
generated
@ -665,7 +665,6 @@ version = "0.28.0"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "0c10584274047cb335c23d3e61bcef8e323adae7c5c8c760540f73610177fc3f"
|
checksum = "0c10584274047cb335c23d3e61bcef8e323adae7c5c8c760540f73610177fc3f"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cc",
|
|
||||||
"pkg-config",
|
"pkg-config",
|
||||||
"vcpkg",
|
"vcpkg",
|
||||||
]
|
]
|
||||||
|
@ -6,5 +6,5 @@ edition = "2021"
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
actix-web = "4"
|
actix-web = "4"
|
||||||
refinery = { version = "0.8.14", features = ["rusqlite"] }
|
refinery = { version = "0.8.14", features = ["rusqlite"] }
|
||||||
rusqlite = { version = "0.31", features = ["bundled"] }
|
rusqlite = "0.31"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user