Deploy to Firebase Hosting

#1

Is there a process to deploy to Firebase hosting with Radzen? I have tried but failed to succeed with the "firebase-init" command in the "Client" directory. Is there any other way to do this?

Thank you for your help.
Levent

0 Likes

#2

Hi @Narrowbody,

I followed these steps to deploy this Radzen application (without a server-side project) to Firebase.

  1. Opened a terminal and went to the client directory.
  2. Ran npm install to install all dependencies.
  3. Ran firebase init and picked Hosting and specified dist as the public directory. Basically followed this Firebase and Angular tutorial.
  4. Then I built the Radzen application for production by running ./node_modules/.bin/ng build --prod or (.\node_modules\.bin\ng build --prod on Windows). This produces a production Angular build available in the dist directory.
  5. Finally I ran firebase deploy which deployed the application.
2 Likes

#3

Thank you so much. Worked like a charm.

0 Likes