title: How to write a now.json file for a perfect deployment
body: <p>I've developed a video chat application using the following tutorial <a href="https://www.sitepoint.com/webrtc-video-chat-application-simplewebrtc/" rel="nofollow noreferrer">https://www.sitepoint.com/webrtc-video-chat-application-simplewebrtc/</a> with the file structure:</p>
  
  <pre><code>simplewebrtc-messenger
  ├── public
  │   ├── images
  │   │   └── image.png
  │   ├── index.html
  │   └── js
  │       └── app.js
  ├── README.md
  ├── now.json
  └── server.js
  </code></pre>
  
  <p>I'm trying to use now.sh to deploy my application and i wrote the following now.json file for that</p>
  
  <pre><code>{
      "version": 2,
      "name": "VideoChat",
      "builds": [
          { "src": "/server.js", "use": "@now/node-server"},
          { "src": "/public/index.html", "use": "@now/static"},
          { "src": "/public/js/app.js", "use": "@now/node"},
          { "src": "/public/images/*.png", "use": "@now/static"}
      ]
  }
  </code></pre>
  
  <p>But i end up with the folder view of the application after deployment.</p>
  
  <p>I want the index.html file to be appeared as default page after deployment with all the functionality.</p>