uploading files to firebase project?

205 views
Skip to first unread message

Marco A.

unread,
Feb 5, 2021, 6:01:23 AM2/5/21
to Firebase Google Group
Hello,
I have a little demo project here modified a bit from an online tutorial:


I created the app via vue.js + webpack
Then I uploaded the file to the firebase hosting.

For this, I installed locally:
npm install -g firebase-tools

then run:
firebase login
firebase init
(I choose the webpack DIST folder for the later upload and choose yes for SPA)

then: firebase deploy

Is it possible to upload a simple picture afterwards to the server?

With php/mysql projects I always used filezilla to manage everything, but this is different here.

Thanks a lot!




Sam Stern

unread,
Feb 5, 2021, 6:06:01 AM2/5/21
to Firebase Google Group
Hi Marco,

Anything you put in your public folder (in your case sounds like dist) will be uploaded to Firebase Hosting aspart of the deployment.  So just drop the images in there and deploy again.

- Sam

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/e67815b1-bad1-4e54-9910-0ce4b38ae721n%40googlegroups.com.

Marco Alvarado

unread,
Feb 7, 2021, 3:27:10 PM2/7/21
to fireba...@googlegroups.com
Hi Sam, thanks for the information, I have to check webpack again concerning the concrete implementation, these bundlers are not so easy to understand.  

You received this message because you are subscribed to a topic in the Google Groups "Firebase Google Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/firebase-talk/HJApnDpLMHw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/CAHafJBo_Bu4aee%3DGv2s0n_CUJYh7Lv%2BNAVwtrp%3DHii6jqU%2BpWg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages