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

Firebase deployment #5

Open
ojsimon opened this issue Mar 19, 2020 · 5 comments
Open

Firebase deployment #5

ojsimon opened this issue Mar 19, 2020 · 5 comments

Comments

@ojsimon
Copy link

ojsimon commented Mar 19, 2020

Hi,

I am trying to deploy to firebase but when I try "firebase serve" it shows me the default settings page for firebase.

Any suggestions?

Thanks

@MedRedha
Copy link

Hi,

I am trying to deploy to firebase but when I try "firebase serve" it shows me the default settings page for firebase.

Any suggestions?

Thanks

I encountered this issue several times using Firebase. Try to : 😭

1- Redirect all the urls into one file ✅
2- Build your project into one file ✅
3- Do not overwrite your current files ✅

Otherwise check this bro : https://firebase.google.com/docs/hosting/deploying

@ojsimon
Copy link
Author

ojsimon commented Mar 19, 2020

Hi, can you explain in a bit more detail what you mean by steps 1 and 2? Sorry I am a bit of a noob. Thanks

@ojsimon
Copy link
Author

ojsimon commented Mar 19, 2020

@MedRedha

@MedRedha
Copy link

Hi, can you explain in a bit more detail what you mean by steps 1 and 2? Sorry I am a bit of a noob. Thanks

Come on bro! don't say that! everyone get stuck somewhere 😉 What I meant is, see when you build your project before deploying it to Firebase? the step just after npm run build is to initialize your project with Firebase console (I took some screenshots for you). 📸

So when you do firebase init command, you still have to configure it before deploy or serve, there, you have to, as I said before, Redirect all the urls into one file & Build your project into one file, it's a performance gain step only, but it helps a lot with big files like this one. 🚀

Got it @ojsimon ?

Screen Shot 2020-03-20 at 3 05 31 PM

Another way to do things, is to use Docker and deploy the main files to Firebase linked with your Docker repository. You'll gain time, space & a bunch of performances while loading it through your domain 👍

See here : https://firebase.google.com/docs/hosting/cloud-run#containerize

@ojsimon
Copy link
Author

ojsimon commented Mar 21, 2020

@MedRedha - Thanks for this. Do you think it would be possible to deploy this Repo to Github pages?

Repository owner deleted a comment Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants