fix(server): immich command (#5408)

* fix: immich command

* chore: use absolute paths
This commit is contained in:
Jason Rasmussen 2023-11-30 15:59:47 -05:00 committed by GitHub
parent 5e55a17b2a
commit 6e365b37db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 11 additions and 18 deletions

View file

@ -1,5 +1,5 @@
import { bootstrap as adminCli } from './admin-cli/main';
import { bootstrap as immich } from './immich/main';
import { bootstrap as admin } from './immich-admin/main';
import { bootstrap as server } from './immich/main';
import { bootstrap as microservices } from './microservices/main';
const immichApp = process.argv[2] || process.env.IMMICH_APP;
@ -12,13 +12,13 @@ function bootstrap() {
switch (immichApp) {
case 'immich':
process.title = 'immich_server';
return immich();
return server();
case 'microservices':
process.title = 'immich_microservices';
return microservices();
case 'admin-cli':
case 'immich-admin':
process.title = 'immich_admin_cli';
return adminCli();
return admin();
default:
console.log(`Invalid app name: ${immichApp}. Expected one of immich|microservices|cli`);
process.exit(1);