Support the ongoing development of Laravel.io →
posted 10 years ago
Database
Last updated 2 years ago.
0

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.

Last updated 2 years ago.
0

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'));
Last updated 2 years ago.
0

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!

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.