Pregunta

I'm looking answer is it possible to create build system in sublime text 3 which will run /dev/build on SilverStripe project. Is it possible to create build system which will run url eg.

 http://mysite.local/dev/build

It could be even greater if I will get response in sublime console or so.

Anyone can help?

¿Fue útil?

Solución

Yes you can. If you save your project Project -> Save project in the same directory as your silverstripe installation. Make sure to switch Project to the one you just made (not sure if it does it automatically. You need to make a new build system Tools -> Build System -> New Build System and use this code:

{
   "shell_cmd": "php ${project_path:${folder}}/framework/cli-script.php dev/build"
}

remember to choose your new Build System in the same menu.

Now you can execute your build with cmd+b or f7, depending on how your key bindings are set up.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top