bullhorn / career-portal

A Bullhorn Platform SDK app that allows candidates to search for and apply to jobs.
https://bullhorn.github.io/career-portal/
MIT License
133 stars 152 forks source link

Deploying Career Portal with Advanced Hosting to Firebase #411

Closed inTulsa closed 3 years ago

inTulsa commented 3 years ago

I'm trying to deploy the career portal with advanced hosting to Firebase. When testing locally, I get this error: Error: No NgModule metadata found for '[object Object]'

Current behavior

Advanced Hosting function not working when deploying to Firebase.

It's difficult to find documentation regarding Bullhorn Career Portal and Advanced Hosting options. Can you provide me with a recommended method for advanced hosting that would work well with an Angular 7 Universal app?

Steps to replicate behavior

  1. Build the dist/browser and dist/server files
  2. Initialize Firebase and set public directory to dist/browser
  3. Move the function to dist
  4. Edit the server.ts to import firebase-functions and add an entry point.
  5. "Firebase Serve" or "Firebase Deploy"

Screenshots

Error: image

Server.ts: image

charlesabarnes commented 3 years ago

Hello, to answer your question Heroku works using just the built-in deploy template. I know EC2 works as well using PM2.

https://heroku.com/deploy?template=https://github.com/bullhorn/career-portal