INNER CODE UNIT · TypeScript

main

PerryTS/perry · example-code/forgejo-deployment/main.ts:426

async function main() {
  const args = process.argv.slice(2);
  const wantsDown = args.indexOf('--down') >= 0 || args.indexOf('down') >= 0;
  const wantsHelp = args.indexOf('--help') >= 0 || args.indexOf('-h') >= 0;

  if (wantsHelp) {
    console.log(
      'Forgejo deployment example (perry/compose)\n' +
      '\n' +
      'Usage:\n' +
      '  ./forgejo_app           Deploy + verify health + exit 0\n' +
      '  ./forgejo_app --down    Tear the stack down\n' +
      '  ./forgejo_app --help    Show this help\n' +
      '\n' +
      'Environment overrides (all optional):\n' +
      '  FORGEJO_VERSION         (default: 11)\n' +
      '  POSTGRES_VERSION        (default: 16-alpine)\n' +
      '  FORGEJO_DOMAIN          (default: localhost)\n' +

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…