Heroku needs to be told it’s PHP not Node.js

(Note – this is a quick dot-point summary for my own benefit. It’s not written up properly.)

So I signed up for Heroku, and spent about three hours trying to work out why my app wouldn’t work.

I was getting errors about “no such file” and it was driving me nuts. I eventually worked out that the /vendor/bin/heroku-php-apache2 file seemed to be missing. So I did composer require --dev heroku/heroku-whatver and that didn’t help much. Continue reading “Heroku needs to be told it’s PHP not Node.js”

Heroku needs to be told it’s PHP not Node.js

Ajax-ey stuff

One day I want to learn backbone.js since I think it’s a front-end framework to do facebook-ey ajax-ey stuff. Or maybe even marionette which seems to be … I dunno, more than backbone… this site might help.

Or maybe AngularJS as it seems to be more popular than backbone and/or Marionette.

Or maybe VueJS because it seems to be lighter and simpler than backbone or Angular for small apps – you can build a small demo app in almost no time. Certainly Taylor Otwell seems to like it.

There is also Mithrill … but I don’t know if it’s really the same sort of thing.

But perhaps that should come after I get a basic server-side thing working first. 🙂

Ajax-ey stuff

Timezones in Laravel 4, part two

(Note – this isn’t a proper blog post, it is just a dot-point list of links for my own reference. Read and/or use it at your own risk.)

A lot of people suggest saving the user’s timezone string in the User model, so dates / times stored in UTC can be displayed in the timezone for that user.

But how to get the user’s timezone string? Continue reading “Timezones in Laravel 4, part two”

Timezones in Laravel 4, part two