Staging instance on Heroku

Your interface to Heroku is essentially a Git branch. The Heroku gem does some work through their API, but within your Git repository, it’s just a new remote branch. heroku create yourapp # production git br -D heroku # delete the default branch heroku create staging-yourapp # staging git br -D heroku # delete the … Read more

How do you maintain development code and production code? [closed]

Update 2019: These days, the question would be seen in a context using Git, and 10 years of using that distributed development workflow (collaborating mainly through GitHub) shows the general best practices: master is the branch ready to be deployed into production at any time: the next release, with a selected set of feature branches … Read more

Canary release strategy vs. Blue/Green

I have written a detailed essay on this topic here: http://blog.itaysk.com/2017/11/20/deployment-strategies-defined In my opinion, the difference is whether or not the new ‘green’ version is exposed to real users. If it is, then I’d call it Canary. A common way to implement Canary is regular Blue/Green with the addition of smart routing of specific users … Read more

Why does Azure deployment take so long?

As a fellow Azure user, I share your pain – deploying isn’t “quick”https://stackoverflow.com/”painless” – and this hurts especially when you’re in a development cycle and want to test dev iterations on Azure. However, in general deployments should take much less than 60 minutes – and less than 20 minutes too. Steve Marx provided a brief … Read more

How do I install package.json dependencies in the current directory using npm

Running: npm install from inside your app directory (i.e. where package.json is located) will install the dependencies for your app, rather than install it as a module, as described here. These will be placed in ./node_modules relative to your package.json file (it’s actually slightly more complex than this, so check the npm docs here). You … Read more

tech