mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
refactor(server)*: tsconfigs (#2689)
* refactor(server): tsconfigs * chore: dummy commit * fix: start.sh * chore: restore original entry scripts
This commit is contained in:
parent
a2130aa6c5
commit
8ebac41318
465 changed files with 209 additions and 332 deletions
24
server/src/main.ts
Normal file
24
server/src/main.ts
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
import { bootstrap as immich } from './immich/main';
|
||||
import { bootstrap as microservices } from './microservices/main';
|
||||
import { bootstrap as cli } from './cli/immich';
|
||||
|
||||
const immichApp = process.argv[2] || process.env.IMMICH_APP;
|
||||
|
||||
if (process.argv[2] === immichApp) {
|
||||
process.argv.splice(2, 1);
|
||||
}
|
||||
|
||||
function bootstrap() {
|
||||
switch (immichApp) {
|
||||
case 'immich':
|
||||
return immich();
|
||||
case 'microservices':
|
||||
return microservices();
|
||||
case 'cli':
|
||||
return cli();
|
||||
default:
|
||||
console.log(`Invalid app name: ${immichApp}. Expected one of immich|microservices|cli`);
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
bootstrap();
|
||||
Loading…
Add table
Add a link
Reference in a new issue