Heroku “No app specified”
--app app-name
to every single command. It seemed to happen when I moved my app to an organisation rather than having it on my personal account, but in fact the problem was that at the same time I did that, I set up the build server to deploy it – and so I removed the old heroku git remote and then never added the new one because I exactly shouldn’t be pushing to heroku from my laptop as we now deploy via Jenkins.
I was looking for some config file or something that heroku would read but what it actually does is look at whether any of your git remotes are heroku and if so, assume by default that you mean that project! The git URL is on the “Settings” screen from the Heroku web interface, and you just need to add it as a remote to your local project:
git remote add heroku [paste git url from settings screen]
Hopefully this helps someone else stop having to type --app app-name
every time they need to do something with their app, it was a tiny problem but quite an annoying one!
MySQL 5.7 Introduces a JSON Data Type
MySQL isn’t the first database to offer JSON storage; the document databases (such as MongoDB, CouchDB) work on a JSON or JSON-ish basis by design, and other platforms including PostgreSQL, Oracle and SQL Server also have varying degress of JSON support. With such wide adoption as MySQL has, the JSON features are now reaching a new tribe of developers. Continue reading
Simple Access Control for CakePHP3
Change Form Input Type in CakePHP3
One thing is bothering me though: it guesses form input types from the database column types, which mostly works well but sometimes it picks something that doesn’t reflect the way that the user will store information in this field. It’s actually pretty easy to change the forms that get generated though, so here’s an example. Continue reading
Documentation First: A Recipe for API Success
PHP 7.0 (and 5.6) on Ubuntu
Simple One-to-one Meetings
- What’s going well/what are you excited about?
- What’s tedious/annoying or actually a problem?
- What could I be doing that I’m not?
Use Ngrok for Testing APIs on Dev
Handling Composer “lock file out of date” Warning
composer.json
where you specify your dependenciescomposer.lock
where composer itself records exactly which precise version of every library and every dependency of every library it picked, so all installs will be identical
Crucially, the composer.lock
also includes a hash of the current composer.json
when it updates, so you can always tell if you’ve added a requirement to the composer.json
file and forgotten to install it. Continue reading