Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 687 Bytes

readme.md

File metadata and controls

25 lines (20 loc) · 687 Bytes

// HELLO ANSHU BABU // FOR MIGRATION GENERATION npm run migration:generate -- src/migration/[MIGRATION_NAME] -d <path/to/datasource>

//FOR MIGRATION RUN npm run migration:run -- -d <path/to/datasource>

//FOR MIGRATION CREATE typeorm migration:generate -d <path/to/datasource> path/to/migrations/

// READ PRIVSTE KEY FORM FILE let privateKey: Buffer;

try {
  privateKey = fs.readFileSync(
    path.join(__dirname, '../../certs/private.pem'),
  );
} catch (err) {
  const error = createHttpError(
    500,
    'Fail to read private key. Make sure the private.pem file is present in the certs folder.',
  );

  throw error;
}