title: using "firebase deploy" to deploy to hosting - how does firebase know if it is deploying to hosting and not cloud functions?
body: <p>I have a firebase project setup and I want to use that same project for both an iOS app and to host a website.</p>
  
  <p>I built a basic iOS app. 
  On my desktop I have a folder: </p>
  
  <pre><code>myiosproject
    - iOS
    - firebase
         - functions
               - index.js
  </code></pre>
  
  <p>I followed the steps to setup cloud functions which according to the docs are to npm install firebase tools, firebase init and then firebase deploy. I've deployed my code to cloud functions and that works fine.</p>
  
  <p>I've also built a basic website and would like to deploy that to firebase hosting. On my desktop I have a folder:</p>
  
  <pre><code>myWebsite
   - images
   - index.html
  </code></pre>
  
  <p>According to the hosting docs the process to set up and deploy is the same as for cloud functions: npm install, firebase init, firebase deploy. </p>
  
  <p>So my question is how does firebase "know" if I am running firebase deploy from my website folder in which case the code should go to hosting or whether I am deploying from my firebase functions folder in which case the code should go to firebase cloud functions?</p>