mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
fix(server): immich command (#5408)
* fix: immich command * chore: use absolute paths
This commit is contained in:
parent
5e55a17b2a
commit
6e365b37db
15 changed files with 11 additions and 18 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue