Skip to content

Part 4: Deployment

KYY edited this page Aug 14, 2018 · 1 revision

Q: How to see the built version of the achievement-App locally? Simulate a deployment locally?

After npm|yarn run build, the webapp will be bundled into static html, js, and css files in /build folder.

  • Use Python: One of the easiest ways is to go to the /build folder, and from that folder path, use Python’s HTTP server module. For Python2, use python -m SimpleHTTPServer 8000, for Python3, use python3 -m http.server 8000, or use any port you like.
  • Use Nodejs: http-server -a localhost -p 80 See StakOverflow

Q: How is the webapp actually deployed? Is there a staging environment for developer to play around first? Do you offer one-click deployment?

We use git branches for staging environment selecting. Currently there are 3 branches - develop, master and prod. Travis-CI deploys develop and master branches. firebase deploy - for prod environment.

Q: Is travis-ci here to provide some kind of one-click deployment solution? And based on your previous answer to .travis.yml, travis is not involved in the deployment?

Travis doesn’t used only with prod branch. For all other branches travis is used

Clone this wiki locally