-
Notifications
You must be signed in to change notification settings - Fork 396
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
Invoke blt frontend from inside drupalVM #1009
Comments
Most Windows devs seem to do this, and it makes the consistency of local builds a little better, as you can guarantee all devs will have the exact same Node.js version installed, and gulp can be installed globally in the VM. For one project where we have a mix of Mac and Windows-based developers, we added the following configuration to power asset compilation for Sass/KSS for Cog (also works with Bootstrap): nodejs_version: "4.x"
nodejs_npm_global_packages:
- name: gulp
nodejs_install_npm_user: "{{ drupalvm_user }}"
npm_config_prefix: "/home/{{ drupalvm_user }}/.npm-global"
installed_extras:
...
- nodejs
... Otherwise, each developer has to manually install Node.js... or |
The biggest problem with some commands (e.g. Right now, for windows devs, I recommend they:
On the Mac or Linux, if you use |
It looks like the path forward would be to modify https://github.com/acquia/blt/blob/8.x/bin/blt to allow for execution in the current environment or via SSH. One interesting side effect... if we made the SSH connection configurable—then BLT could also be used to deploy and manage things outside of just the local environment. If devs used cloud environments (to which they had SSH access), they could execute commands remotely inside that environment as well. #dumbTerminal for the win — I know a couple customers who had really weak and locked down laptops, where even Drupal VM was a step too far. They could use cheap AWS instances for dev (or any kind of Cloud instance), just like they would Drupal VM (and Drupal VM could be configured to provision those instances as well). |
Also note some things about usage inside a Windows 10 environment (in addition to all the other notes): https://www.jeffgeerling.com/blog/2017/set-blt-and-drupal-vm-entirely-within-windows-10 |
Been doing some light research on this topic. Thinking we might be able to use
the primary blt command can simply proxy all it's calls to |
Interesting... that seems like it could work. |
That worked (even passed through colors correctly!), but I couldn't do anything with |
--no proxy is an idea I came up with that we could use in the blt command to tell it to not proxy |
@geerlingguy, @grasmash
|
When DrupalVM is configured for a BLT repo, and a user executes
blt frontend
from outside the VM please ssh into the vm and executeblt frontend
from inside the VM. This will ensure consistent experience for front-end build tools, and remove local install problems.The text was updated successfully, but these errors were encountered: