2016년 8월 8일 월요일

Firebase Hosting eojjiFolder

Firebase Hosting | Firebase


Firebase Hosting provides fast and secure static hosting for your web app.


Next Steps:


Get Started with Hosting and deploy your web app or static assets.



console.firebase - 프로젝트 만들기 - eojjiFolder



console.firebase - eojjiFolder - Hosting


console.firebase - eojjiFolder - Hosting - 설정


호스팅 설정 
사이트를 호스팅하려면 npm(Node.js)을 사용해 Firebase 명령줄 도구를 설치해야 합니다.
Firebase 도구 설치 코드:$ npm install -g firebase-tools명령어가 작동하지 않나요? npm 권한을 변경해야 할 수도 있습니다.


참조: Firebase CLI Reference
console.firebase - eojjiFolder - Hosting - cmd





console.firebase - eojjiFolder - Hosting - 배포


C:\Program Files\nodejs>firebase login
Already logged in as a@eojji.com


C:\Program Files\nodejs>firebase init


    ######## #### ########  ######## ########     ###     ######  ########
    ##        ##  ##     ## ##       ##     ##  ##   ##  ##       ##
    ######    ##  ########  ######   ########  #########  ######  ######
    ##        ##  ##    ##  ##       ##     ## ##     ##       ## ##
    ##       #### ##     ## ######## ########  ##     ##  ######  ########


You're about to initialize a Firebase project in this directory:


 C:\Program Files\nodejs


Before we get started, keep in mind:


 * You are currently outside your home directory


? Are you ready to proceed? Yes
? What Firebase CLI features do you want to setup for this folder? Database: De
ploy Firebase Realtime Database Rules, Hosting: Configure and deploy Firebase H
osting 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.


? What Firebase project do you want to associate as default? eojjiFolder (eojji
folder)


=== Database Setup


Firebase Realtime Database Rules allow you to define how your data should be
structured and when your data can be read from and written to.


? What file should be used for Database Rules? database.rules.json
+  Database Rules for eojjifolder have been downloaded to database.rules.json.
Future modifications to database.rules.json will update Database Rules when you run
firebase deploy.


=== Hosting Setup


Your public directory is the folder (relative to your project directory) that
will contain Hosting assets to 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? public
? Configure as a single-page app (rewrite all urls to /index.html)? Yes
+  Wrote public/index.html


i  Writing configuration info to firebase.json...
i  Writing project information to .firebaserc...


+  Firebase initialization complete!
C:\Program Files\nodejs>firebase deploy


=== Deploying to 'eojjifolder'...


i  deploying database, hosting
+  database: rules ready to deploy.
i  hosting: preparing public directory for upload...
+  hosting: public folder uploaded successfully
+  hosting: 1 files uploaded successfully
i  starting release process (may take several minutes)...


+  Deploy complete!


Hosting Site: https://eojjifolder.firebaseapp.com
Dashboard: https://console.firebase.google.com/project/eojjifolder/overview


Visit the URL above or run firebase open


C:\Program Files\nodejs>


C:\Program Files\nodejs\public\index.html

Welcome to Firebase Hosting

You're seeing this because you've successfully setup Firebase Hosting. Now it's time to go build something extraordinary!

OPEN HOSTING DOCUMENTATION


웹사이트 배포:
$ firebase deploy

https://eojjifolder.firebaseapp.com/



apps script ‘Eojji folder Service’ Index.html copy and paste


C:\Program Files\nodejs>firebase deploy  -m "index.html" --only "hosting"


=== Deploying to 'eojjifolder'...


i  deploying hosting
i  hosting: preparing public directory for upload...
+  hosting: public folder uploaded successfully
+  hosting: 1 files uploaded successfully
i  starting release process (may take several minutes)...


+  Deploy complete!


Hosting Site: https://eojjifolder.firebaseapp.com
Dashboard: https://console.firebase.google.com/project/eojjifolder/overview


Visit the URL above or run firebase open


C:\Program Files\nodejs>


댓글 없음:

댓글 쓰기