Fix errors in prod backend and android app
This commit is contained in:
parent
66640261c3
commit
3922906a33
@ -8,6 +8,7 @@ Environment=PATH=$PATH:/home/reimar/.dotnet
|
||||
Environment=DEFAULT_CONNECTION="Data Source=/home/reimar/skantravels/database.sqlite3"
|
||||
ExecStartPre=/home/reimar/skantravels/efbundle
|
||||
ExecStart=/home/reimar/skantravels/API --urls=http://0.0.0.0:5001
|
||||
WorkingDirectory=/home/reimar/skantravels
|
||||
Type=simple
|
||||
|
||||
[Install]
|
||||
|
4
Mobile/build-apk.sh
Executable file
4
Mobile/build-apk.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
java -version
|
||||
flutter build apk --split-per-abi --dart-define-from-file environment.prod.json
|
||||
|
4
Mobile/environment.prod.json
Normal file
4
Mobile/environment.prod.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"AUTH_SERVICE_HOST": "https://skantravels.reim.ar",
|
||||
"APP_SERVICE_HOST": "https://skantravels.reim.ar"
|
||||
}
|
@ -18,6 +18,8 @@ import 'api.dart' as api;
|
||||
import 'package:http/http.dart' as http;
|
||||
|
||||
void main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
|
||||
// Refresh JWT on startup
|
||||
final prefs = await SharedPreferences.getInstance();
|
||||
if (prefs.getString("token") != null && prefs.getString("refresh-token") != null) {
|
||||
|
@ -6,6 +6,7 @@ After=network.target
|
||||
Environment=RUST_BACKEND_PORT=5002
|
||||
Environment=RUST_BACKEND_DB=/home/reimar/skantravels/database-rust.sqlite3
|
||||
ExecStart=/home/reimar/skantravels/skantravels
|
||||
WorkingDirectory=/home/reimar/skantravels
|
||||
Type=simple
|
||||
|
||||
[Install]
|
||||
|
Loading…
Reference in New Issue
Block a user