gnarula / sublime-laravelgenerator

A Sublime Text Plugin which allows using Laravel 4 Generators by Jeffrey Way via the command palette.
165 stars 44 forks source link

Aristan:migrate doesn't work #39

Open bonbon1702 opened 10 years ago

bonbon1702 commented 10 years ago

Hi, I am using Window with xampp, and sublime text 3. I follow your guild to copy laravelgenerator.sublime-settings file in users/ with path:

C:\\xampp\\php\\php.exe

every thing work nice, but when i try aristan:migrate, it make error:

**************************************
*     Application In Production!     *
**************************************

Do you really wish to run this command? 

  [RuntimeException]  
  Aborted             

migrate [--bench[="..."]] [--database[="..."]] [--force] [--path[="..."]] [--package[="..."]] [--pretend] [--seed]

[Finished in 0.3s with exit code 1]
[cmd: php C:\xampp\htdocs\projects\chatapp\artisan migrate]
[dir: C:\xampp\htdocs\projects\chatapp]
[path: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\xampp\php;E:\RailsInstaller\Git\cmd;E:\RailsInstaller\Ruby1.9.3\bin;C:\xampp\php]

Thanks for helping!

nmfzone commented 9 years ago

Yeah, sound like me. I think it's because Sublime cann't handle an command input, Solution is you must create custom command in Preferences > Package Settings. And then create migrate command and add "--force" (without dublequote) in the last of your command. You can check in cmd, because --force to skip from apllication production input. (php artisan migrate --force)

Hopefully works ^___^

nmfzone commented 9 years ago

Or maybe you can easily by add TRUE in bootstrap/start.php to be like this : 'local' => array('homestead', true), And you may use database setting not in app/config/database.php again, but in app/config/local/database.php

Hope will help some people :)))))))