Have you considered using a multi-tenant app.
Create a web installer for a Laravel-app or even deploy it using FTP
Hi there,
I am facing a situation where a Laravel-app I created needs to be installed on dozens of remote servers. Those target-servers provide FTP-access, sometimes SSH and always a database-server.
All these Laravel-apps should be managed by a "main app", which is also built with Laravel.
Now I am wondering, whether I can create a good solution to:
- install the Laravel-app the best way
- deploy updates
Those are my thoughts on that:
As the app does not need to run queues or schedulers, the setup itself should be no problem on the remote-site. I could generate an .env-file with pre-filled values regarding database-access and automatically upload it using another Laravel-app ( = "main app").
As it is not always possible to run composer on those remote targets, I'd need to prepack /vendor and all the static assets.
But I can not run migrations when I do not have access to the shell. So I wondered if I could do that by publishing a protected /install and /update-route.
But what would be the best and most secure way to provide these routes? Or are there even better approaches I can try?
Edit: Please note my post down here: https://laracasts.com/discuss/channels/general-discussion/create-a-web-installer-for-a-laravel-app-or-even-deploy-it-using-ssh?page=1&replyId=851634
The latest answers are completely correct but they don't solve my problem: I can't create a multi-tenant-app, as this app has to run on different servers, which I do not own. I only get a web hosting-account that allows me to deploy a PHP-app using FTP.
Please or to participate in this conversation.