yii2 - Multiple alias in one account -
i never used fortrabbit before , have question it. know can create apps , define document root, lets imagine following:
i want go yii2 framework (advanced template)
advanced template have "two apps" in (2 folders) backend , frontend.
on real server have create 2 alias, eg:
- admin.myapp.com -> root/backend/www
- www.myapp.com -> root/frontend/www
is possible configure fortrabbit work within same application , share same resources (mysql, cache, etc)?
your setup possible @ fortrabbit. put both folders in git repo , push forrabbit. after can route subdomains (www., admin.) subfolders (frontend/www, backend/www).
if project requires composer install
during deploy process not work our of box, since check composer.json/lock in root of project.
however can define custom post-deploy scripts. in these script call composer install
in subfolders.
cheers oliver (fortrabbit staff)
Comments
Post a Comment