3

How to run an artisan command on my Laravel app in AppFog?

I need to run commands like this:

php artisan down
php artisan up

Any idea?

Rubens Mariuzzo
  • 28,358
  • 27
  • 121
  • 148
cawecoy
  • 2,359
  • 4
  • 27
  • 36

2 Answers2

2

It looks like I can run Artisan commands within my app code, like this:

Artisan::call('down');

Reference: Laravel Forums

cawecoy
  • 2,359
  • 4
  • 27
  • 36
1

It doesn't look like you can currently do so, other people seem pretty annoyed by this:

Perhaps a work around could be constructing a password protected part of your application that calls the artisian tasks directly?

Malachi
  • 33,142
  • 18
  • 63
  • 96
  • May I do this? Could I execute a PHP file asynchronously and passing parameters to it, from another PHP file that runs by a browser? – cawecoy Aug 01 '13 at 13:08