Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #16

Merged
merged 15 commits into from
Jul 23, 2023
Prev Previous commit
Next Next commit
change of index.ts
  • Loading branch information
Szotkowski committed Jul 23, 2023
commit fb7329052627da825d7608d135e10a39ba4b59d5
11 changes: 0 additions & 11 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,6 @@ export * from './application';

export async function main(options: ApplicationConfig = {}) {
const app = new SelecroBackendApplication(options);
const fs = require('fs');

const filePath = path.join(String(process.env.CERT_PATH), String(process.env.CERT_FILE)); // Replace with the actual file path

fs.stat(filePath, (err: any, stats: {mode: {toString: (arg0: number) => any;};}) => {
if (err) {
console.error('Error accessing file:', err);
} else {
console.log('File permissions (mode):', stats.mode.toString(8));
}
});
await app.boot();
await app.start();

Expand Down