Я только что создал сайт электронной коммерции с ReactJS и использовал Firebase для своей базы данных и хостинга. Я развернул сайт, и он загружается на моем компьютере, но не на моем мобильном устройстве или компьютерах моих друзей. Я не уверен, в чем проблема. Я также попытался перераспределить сайт, но все равно не повезло. Недавно я развернул другой проект, и у меня не было проблем. Я включил всю информацию из моего терминала ниже. Любой совет будет принята с благодарностью.
Bens-MacBook-Pro:velo-e-commerce benharned$ sudo npm install -g firebase-tools
/usr/local/bin/firebase -> /usr/local/lib/node_modules/firebase-tools/lib/bin/firebase.js
+ firebase-tools@6.2.2
updated 1 package in 3.074s
Bens-MacBook-Pro:velo-e-commerce ######$ firebase login
Already logged in as #######76@gmail.com
Bens-MacBook-Pro:velo-e-commerce #######$ firebase init
######## #### ######## ######## ######## ### ###### ########
## ## ## ## ## ## ## ## ## ## ##
###### ## ######## ###### ######## ######### ###### ######
## ## ## ## ## ## ## ## ## ## ##
## #### ## ## ######## ######## ## ## ###### ########
You're about to initialize a Firebase project in this directory:
/Users/#######/Documents/velo-e-commerce
Before we get started, keep in mind:
* You are initializing in an existing Firebase project directory
? Which Firebase CLI features do you want to setup for this folder? Press Space
to select features, then Enter to confirm your choices. Hosting: Configure and d
eploy Firebase Hosting sites
=== Project Setup
First, let's associate this project directory with a Firebase project.
You can create multiple project aliases by running firebase use --add,
but for now we'll just set up a default project.
i .firebaserc already has a default project, skipping
=== Hosting Setup
Your public directory is the folder (relative to your project directory) that
will contain Hosting assets to be uploaded with firebase deploy. If you
have a build process for your assets, use your build's output directory.
? What do you want to use as your public directory? build
? Configure as a single-page app (rewrite all urls to /index.html)? Yes
? File build/index.html already exists. Overwrite? No
i Skipping write of build/index.html
i Writing configuration info to firebase.json...
i Writing project information to .firebaserc...
✔ Firebase initialization complete!
Bens-MacBook-Pro:velo-e-commerce benharned$ firebase deploy
=== Deploying to 'velo-velo'...
i deploying functions, hosting
i functions: ensuring necessary APIs are enabled...
✔ functions: all necessary APIs are enabled
i functions: preparing functions directory for uploading...
i functions: packaged functions (42.44 KB) for uploading
✔ functions: functions folder uploaded successfully
i hosting[velo-velo]: beginning deploy...
i hosting[velo-velo]: found 19 files in build
✔ hosting[velo-velo]: file upload complete
i functions: updating Node.js 6 function charge(us-central1)...
✔ functions[charge(us-central1)]: Successful update operation.
i hosting[velo-velo]: finalizing version...
✔ hosting[velo-velo]: version finalized
i hosting[velo-velo]: releasing new version...
✔ hosting[velo-velo]: release complete
✔ Deploy complete!
Project Console: https://console.firebase.google.com/project/velo-velo/overview
Hosting URL: https://velo-velo.firebaseapp.com
Bens-MacBook-Pro:velo-e-commerce benharned$