What I have learned:
- Try to think about/plan for ten years out - Make your application easy/pleasant/fun to use for you and your customers - Limit third party dependencies at all junctures - Log everything, it makes support and monitoring easy and fast - Customers don't care what language/platform/db you use - Have a support ticket system - Have a coding convention/style and stick to it - Life work balance is important, take vacations - Run lots of backups - Keep it simple and thank yourself later!
Of course YMMV. Hope that's helpful to someone starting out.