Fix code convention in app.ts and serve static files only in dev