How to move Laravel in simple hosting?

萝らか妹 提交于 2019-12-11 05:26:14

问题


I try to move Laravel project in simple hosting(PHP), but this hosting does not has SSH and command terminal.

Can I somehow to run this project in hosting?


回答1:


You can run all needed commands on local server (composer, migrate etc.) then move entire directory to the shared server and configure domain to directory with your project, for example:

/home/shared/laravel-project/public

On local server you can use mysqldump (or pg_dump) to export database, so then you can import database via for example phpmyadmin or phppgadmin on shared server.

Remember to change database configuration in .env file.



来源:https://stackoverflow.com/questions/38874863/how-to-move-laravel-in-simple-hosting

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!