Deploying Yii2 app to shared host steps

后端 未结 1 798
长发绾君心
长发绾君心 2021-01-19 03:04

I find it bizarre that there is so little, (if any) details on considerations for deploying a Yii2 app to a shared host server.

Does anyone have some steps, tips, co

相关标签:
1条回答
  • 2021-01-19 03:28

    First read this page http://www.yiiframework.com/doc-2.0/guide-tutorial-shared-hosting.html

    Regarding the files yes, just copy them. If your host allows you ssh access (but not git) you can have them copied very fast with rsync (so you can use composer etc on your computer and deploy through ssh). I have done a similar script that does the same thing with FTP at 1 point but it was much slower. Since I have stopped making websites for shared hosting.

    Regarding the migrations you can make them run from the browser too for example How to handle yii2 migrations on hosts without console access? Make sure you read the answer and the comments too and follow that link.

    0 讨论(0)
提交回复
热议问题