nova-ruby / rails

Ruby on Rails and Ruby support for Nova editor.
19 stars 7 forks source link

Feature: Build/Run Actions #19

Open andrekandore opened 2 years ago

andrekandore commented 2 years ago

Hi!

Thanks for the great extension!

I had a small question: is there any work ongoing to add a build or run action for the plugin?

For example, on RubyMine, the run button seems to just call bundle exec ruby to the rails server, and seems maybe straightforwards to implement.

If there are currently no plans, or no one is working on it, would you accept a PR that adds the feature?

Thanks!

eirvandelden commented 2 years ago

There already is! When you open an RoR project and you click on your project settings, you can hit the + sign next to "tasks" and add one of the two tasks: a "Rails dev" task and a "Rails Server" task.

Schermafbeelding 2022-06-09 om 14 01 42

I have no idea what "Rails Dev" does 🤷🏼

Note: Neither am I the creator of this extension, nor do I actually use this task. I let puma-dev handle starting up a server when I need it.

tommasongr commented 2 years ago

Hi there! Thanks @eirvandelden for pointing this out. I was just about to answer it.

Anyway yes, there are three task templates bundled within the extension:

However I'm aware of an issue that makes the first and last one basically crashing at runtime. I fixed it in a local branch but I've not been able to polish it for a release yet. Besides those fixes I also want to add them to the docs and eventually ask the community for some recommendations or requests for other templates.

andrekandore commented 2 years ago

thanks @eirvandelden and @tommasongr!

im not sure why i could have missed that but ill take a look!

thanks again!