Building Ambitious Applications Integrated with ArcGIS Online/Portal

Deployment

Mike Juniper :: Washington DC R&D Center

mjuniper.github.io/presentations/ds2017/ambitious-apps-deployment.html

Deployment...

  • Build the app
  • Fingerprint assets
  • Gzip assets
  • Optimize images
  • Upload to webserver

and maybe...

  • Enforce a caching stragegy
  • Post a message in slack
  • Notify a web service
  • Create a cloudfront invalidation
  • ???

This is a job for the robots!

The stupid simple approach:

surge.sh

  • Simple
  • Easy
  • Free
  • Production ready?

  $ ember install ember-cli-surge
  $ ember surge
          

The blessed approach:

ember-cli-deploy

  • Flexible
  • Extensible
  • Composable
  • More complexity
  • You need to figure out what you want it to do

$ ember install ember-cli-deploy
$ ember install ... # ember-cli-deploy plugins or plugin packs
          

setup external stuff like s3, azure, cloudfront, Firebase, Heroku


// config/deploy.js
// configure your deploy pipeline
          

$ ember deploy --activate production # or other environment