Publishing Flutter Web App to Firebase Hosting: recent changes not published - firebase

My Codemagic pipeline is configured to fetch sources from my repository, build web and publish it to Firebase hosting.
The build is each time successful, but the changes from my last commit are not there, so I assume that the publishing part somehow not woking properly.
In the logs though everything looks great, my last commit is fetched, and firebase logs say that deploy is complete with the link to the site and all. (see below)
How could I "Debug" this case, any ideas on what is wrong?

you can try following steps to debug such type of issues:
open site in incognito mode to ensure issue not related to browser cache
check Cache-Control and Date response headers for main.dart.js file to ensure you have properly configured cache behaviour in Firebase Hosting
https://firebase.google.com/docs/hosting/manage-cache
https://firebase.google.com/docs/hosting/full-config#headers
I hope it will help

Related

Firebase - How to access the deployed application

I have just deployed my flutter app to the Firebase. When I go to the Hosting section on the firebase, I do see domains listed as .web.app and firebaseapp.com. However, when i open any of the links, instead of showing my application It takes me to this page which says -
Welcome Firebase Hosting Setup Complete
You're seeing this because you've successfully setup Firebase Hosting.
Now it's time to go build something extraordinary!
OPEN HOSTING DOCUMENTATION
How can i access my app and not this message which pops up everytime?
Okay so it looks like when you run Firebase init command, It kinds of rewrites your index.html and hence that page. All I had to do was this :
Run firebase init.
Define directory to build/web
Run flutter build web (and not at the start of this procedure)
Run firebase deploy.

Azure's application service has a Bug

I have a azure service running wordpress.
Someday, I updated a plugin (Yoast SEO) and stopped work. Azure's KUDU panel cannot shows files.
Look:
I can list using command ls-l, but KUDU panel no.
I tryied chmod, chown and nothing.
More special is when I changed directory to this folder and receveive response my session is expired. But it is not. I get use other feature with same session.
If I access using direct URL, I receive:
"You do not have permission to view this directory or page"
I have a Microsoft support but it not helps.
Anyone, please!
Microsoft support has concluded that there is a plugin that can be used in the Application Service called Composer that does not allow the word "vendor" and with this, the error.
We have disabled this extension and the site has returned to normal operation.
Hope it helps.

How to put a FIREBASE HOSTING site into maintenance mode?

I have a Vue.js app and use Firebase Hosting to serve the static files to users.
Does Firebase Hosting have a method for putting the app into maintenance mode remotely? Without having to do firebase deploy
Maybe something that will allow me to redirect all the traffic to some other index.html, and be able to manage it from Firebase.
P.S. I've already looked into Firebase Remote Config (and it doesn't fit my use case, and their web related tools aren't fully implemented yet). And I'd like to avoid having a realtime database just for maintenance mode.
There is no mode-switch built into Firebase Hosting for temporarily serving other content.
But given the recent updates to deploy efficiency, it should be pretty low-cost to put up a temporary index.html while making the changes. Alternatively, you could deploy rules (in firebase.json) that temporarily redirect all traffic to a wip.html (for work-in-progress).
Which of these works best, depends on your current content structure. I.e. if you already redirect "all" traffic to index.html, I'd probably go with a rewriting solution.
You can also unroll your last deploy in one command.
Deploy maintenance page
Unroll when its done
Don't forget to send a 503 error for googlebot, asking it to come back in X hours.

Error while publishing web app to azure

I get this error when i publish my webapp. Any idea why and how can i solve it?
I was able to publish it properly but then i deleted the webapp in azure and then tried to publish it again. Got this error.
Just delete browser cookies.
I created web app (1st time) --> it saved some cookies for authentication
deleted the webapp from azure -->> cookie still saved on browser
Created web app again, cookie did not get updated so there was this error.
Just delete browser cookies and it should solve this error.

deploy localhost:3000 file. But after deploy to myapp.meteor.com, get empty page.

I have deployed my first app to meteor.com. It is called evideo.meteor.com.
I gets empty page. But when deploying to my local machine deployment, it was fine.
It is an app that can load or take pictures/videos.
I enter your app website and open the console, finding that there are some errors. You might check it out.

Resources