Avoid loading environment when just precompiling assets.

On a cold deploy, precompiling assets fails because the DB isn't
migrated yet, and our environment tries to access the DB when it
sets up the model observers.