Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

grunt watch not working as expected in centos 7 #69

Open
dhensby opened this issue Mar 2, 2015 · 8 comments
Open

grunt watch not working as expected in centos 7 #69

dhensby opened this issue Mar 2, 2015 · 8 comments

Comments

@dhensby
Copy link
Member

dhensby commented Mar 2, 2015

The sass builder seems to be very intermittent at the moment - I can't get to the bottom of it at all. :(

@dhensby
Copy link
Member Author

dhensby commented Mar 2, 2015

It's odd as when I run nohup grunt --base /var/www/html --gruntfile /var/www/html/Gruntfile.js watch > /dev/null 2> /dev/null < /dev/null & from the command line, it works as expected...

Seems to be a problem with the script in init.d...

@dhensby
Copy link
Member Author

dhensby commented Mar 2, 2015

ok, when I add this to the end of the provisioners, grunt watch works as expected:

  config.vm.provision :shell, inline: "nohup grunt --base /var/www/html --gruntfile /var/www/html/Gruntfile.js watch \
  > /dev/null 2> /dev/null < /dev/null &", run: "always"

So, unless we have any better ideas, I'm thinking of moving the script into a run: "always" instead of a startup script. Thoughts @willmorgan ?

@dhensby
Copy link
Member Author

dhensby commented Mar 9, 2015

bump @willmorgan

@Firesphere
Copy link
Contributor

If I understand correctly, you want SASS to run all the time, on the VM itself?
I don't think this is a good idea. It should run on the host, not taking up VM resources.

@dhensby
Copy link
Member Author

dhensby commented Jan 13, 2016

My entire aim with using vagrant is to have a complete ready to go dev environment without needing to install anything on a host apart from the software required to run the VM.

Installing sass on the host defeats my entire aim of having self-containted and self-provisioned environments to pass along to any developer.

@dhensby
Copy link
Member Author

dhensby commented Jan 13, 2016

I think that grunt is now working as expected now - but I haven't been hands on recently to be certain

@Firesphere
Copy link
Contributor

Although I agree with having a complete package, I still feel a bit unsettled about running everything in the VM.
Using SASS is a developers choice after all, right?

@dhensby
Copy link
Member Author

dhensby commented Jan 13, 2016

Well, sure... but if your project set up dictates it's required, then there's no choice on the individual choice.

I don't see this as an individuals approach to working on a project; it's a holistic approach where the entire team would be developing on a VM.

So any software would only be installed on the VM if the project needed it.

Further, this project is to support SilverStripe developers and their contributions to the OSS project, some contributions require SASS for that and installing it automatically on the VM lowers the barrier to entry for contributors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants