set/use hostname externally, use it for shelf, make sure to make app dir