go-aah / aah

A secure, flexible, rapid Go web framework
https://aahframework.org
MIT License
691 stars 33 forks source link

Fix init.go file generate for aah v0.10.x and below #211

Closed jeevatkm closed 6 years ago

jeevatkm commented 6 years ago

This is fix init.go file generate issue.

Cause: In v0.11.0, aah template moved to AAHPATH. CLI is looking for app-template at previous location.

Solution: CLI should check AAHPATH first if not unavailable then fall back to previous location.

Credit: This bug was discovered by @joelsdc. He ran into this while upgrading his aah REST service application from v0.7 to v0.11.x.

jeevatkm commented 6 years ago

Done 😄