question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How can i deploy on firebase

See original GitHub issue

I’m trying to use ng deploy but failed to host the SSR Version But got Source and destination must not be the same.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ribomationcommented, May 13, 2020

@OmarioHasan, My site is deployed to Firebase Hosting and it’s Angular v9 with SSR using the ExpressJS engine.

However, I do not use the ng deploy command, because IMO it’s pointless when you already have the firebase-tools installed. Just use the command firebase deploy command.

Before deploying, you need to configure firebase for hosting both the static assets from ng build --prod but also the result of building the SSR express engine. That latter should be configured as a firebase cloud function and all trafic (except CSS, JPG, …) should be redirected to that function.

Here is the link to my site: https://www.ribomation.com/home

0reactions
OmarioHassancommented, May 13, 2020

@ribomation can you show your configurations and the steps you do , i will be also glade if you support me with a repo that i can use did this works with ngx-translate ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get started with Firebase Hosting - Google
Step 1: Install the Firebase CLI · Step 2: Initialize your project · Step 3: Deploy to your site.
Read more >
Deploy your app to firebase — in seconds! - Medium
This command will create a www folder. This is the folder we are going to deploy. firebase init. Next, we will setup a...
Read more >
Firebase - Deploying - Tutorialspoint
Firebase - Deploying · Step 1 - Install Firebase Tools · Step 2 - Initialize the Firebase App · Step 3 - Deploy...
Read more >
Deploying to Firebase | Cloud Build Documentation
Using the firebase community builder · Navigate to your project root directory. · Navigate to the firebase builder image: · Submit the builder...
Read more >
How to deploy your web application on Firebase Hosting
Create a new Firebase project · Register your app with Firebase · Add the Firebase SDK · Install Firebase CLI · Deploy the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found