The solution you're describing is how Artisan works. In the root of your project you have the artisan file. Even though it doesn't have a php extension, it's still a php file. That's your simple PHP file right there on their server. And when your deployment tool calls the migrate command it gets executed on their server as well. Seems to be a non-issue to me, unless I'm missing something.
You can either ssh into the server and run php artisan migrate
or you can add this somewhere into your code:
$migrate = Artisan::call('migrate', array('--path' => 'app/migrations'));
ilumos said:
You can either ssh into the server and run
php artisan migrate
or you can add this somewhere into your code:$migrate = Artisan::call('migrate', array('--path' => 'app/migrations'));
Thanks dude!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community