Category Archives: Uncategorized

Zero Downtime Laravel Deploy Script

At Purpose Built, we use Laravel Forge to manage our servers and auto-deploy code to projects. Forge is great, and really simplifies these things.

Forge provides a basic deploy script to do all the things that need to happen to deploy the application, things like:

  • Pull the most recent code
  • Update composer libraries
  • Update JS libraries
  • Compile JS code
  • Run database migrations
  • Restart PHP-FPM

This process usually takes about a minute to run. While this deploy script us running, a user might happen to interact with the application, and it’s hard to say what they are going to see.

Continue reading

On Quitting.

SocialClassChoice“I’m glad you came to talk to me, it’s a relief really”, my coach said.

I was sitting on the couch in the Cornell wrestling coach’s room.

I had walked on to the Cornell wrestling team two years back, a freshman nobody had heard of from California.  I wrestled three years in high school, was team MVP for three years, team captain for two, first in my league for two years, most wins in the high school history, so I figured I could do something like that in college too. Continue reading

Changing Direction

change_directionI’ve had a vcf like personal webpage up here for a couple of years, and it’s time to change. Time to blog like it’s 2002 and I’m a 13 year old with things to say! Seriously, I’ve been working out a ton of ideas recently, and want a place to put them out. Even if it’s just for me, the pressure of putting together cogent thoughts for an audience that is not me will help crystalize these thoughts, and hopefully others.

If you’re into technology, psychology, software development, micropreneurship, music… you might find something to think about here. Stay tuned…