How To Run Simultaneous Rails Apps With Ease During Development

04 December 2016

An artsy quark. Smaller pieces combining to make the whole greater than the sum of the parts, just like proper microservices.

Sometimes while you’re developing Rails apps, especially microservice architectures, you need to be able to run multiple apps on your development machine. Read on to see how I quickly and easily solved that problem using Foreman (Update 12-12-09: Use Heroku Local instead) and a few configuration changes.

Read More...

Gem Release: Google Analytics Chrome Developer Cookie

03 December 2016

Google Analytics Chrome Developer Cookie

Want to add easily configurable google analytics tracking code to your Rails application, but not register you and your development team’s clicks and views? This gem has you covered.

If you’ve ever developed a website with Google Analytics tracking code on it, I’m sure you’ve run into the problem before where you load up your development machine and start registering visits. Not ideal, especially if you start refreshing the page a lot. Or, even worse, frontend CI running after each commit… There’s an awesome Chrome plugin that solves this: Developer Cookie. It allows you to set a custom cookie value, so that if your machine’s cookie matches the value in the analytics script, it doesn’t register a click. Very handy.

In order to make this even more accessible, I’ve created a gem which lets you insert and easily configure not just the developer cookie functionality, but also Google analytics functionality. Configure a few environment variables, javascript_include_tag the analytics js and you’re off. I’ve also added it to the Base Rails 5 App.

Check out the github page for quickstart and a more detailed description.

Thanks for checking it out, and let me know if there are any useful things you’d like to see added to it.

Read More...

Heroku Rake Deploy Gem Release

25 November 2016

Heroku Rake Deploy

Heroku Rake Deploy

I’ve extracted the app deployment logic from Heroku Ops into its own gem. It’s just a simple deploy script that comes in two flavors:

  • quick pushes your code and restarts your Heroku app
  • deploy backs up your remote heroku database, deploys code, runs migrations, and restarts the server.

Check out the github page for quickstart and a more detailed description.

Thanks for checking it out, and let me know if there are any useful things you’d like to see added to it.

Read More...

Heroku Ops Gem Update

25 November 2016

HerokuOps

HerokuOps Updates

Functionality remains largely the same in this gem release. The major change here is extracting subsections of its logic into two other gems:

Check out the github page for quickstart and a more detailed description.

Thanks for checking it out, and let me know if there are any useful things you’d like to see added to it.

Read More...

Heroku DB Restore Gem Release

25 November 2016

Heroku DB Restore

Heroku DB Restore

I’ve extracted the DB Restore logic from Heroku Ops into its own gem. These tasks focus on cloning a Heroku apps database into your local dev db. We use this a lot to troubleshoot production bugs. Simply clone the db, replicate the problem and you’re off!

Check out the github page for quickstart and a more detailed description.

Thanks for checking it out, and let me know if there are any useful things you’d like to see added to it.

Read More...

Previous Page: 5 of 10 Next