lando | A development tool for all your projects | Continuous Deployment library
kandi X-RAY | lando Summary
kandi X-RAY | lando Summary
A development tool for all your projects that is fast, easy, powerful and liberating
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Retrieve the dev version .
lando Key Features
lando Examples and Code Snippets
Community Discussions
Trending Discussions on lando
QUESTION
I've scoured the internet and have bits and pieces but nothing is coming together for me. I have a local Drupal environment running with Lando. I've successfully installed and configured webpack. Everything is working except when I try to watch or hot reload.
When I run lando npm run build-dev
(that currently uses webpack --watch
I can see my changes compiled successfully into the correct folder. However, when I refresh my Drupal site, I do not see that changes. The only time I see my updated JS changes are when I run lando drush cr
to clear cache. Same things are happening when I try to configure the webpack-dev-server.
I can get everything to watch for changes and compile correctly but I cannot get my browser to reload my files, they stay cached. I'm at a loss.
I've tried configuring a proxy in my .lando.yml , and have tried different things with the config options for devServer. I'm just not getting a concise answer, and I just don't have the knowledge to understand exactly what is happening. I believe it has to do with Docker containers not being exposed to webpack (??) but I don't understand how to configure this properly.
These are the scripts I have set up in my package.json
, build
outputs my production ready files into i_screamz/js/dist
, build-dev
starts a watch and compiles non-minified versions to i_screamz/js/dist-dev
- start
I have in here from trying to get the devServer to work. I'd like to get webpack-dev-server
running as I'd love to have reloading working.
ANSWER
Answered 2022-Apr-02 at 15:48I've updated my code files above to reflect reflect a final working setup with webpack. The main answer was a setting in
/web/sites/default/settings.local.php
**Disable CSS & JS aggregation. **
$config['system.performance']['css']['preprocess'] = FALSE;
$config['system.performance']['js']['preprocess'] = FALSE;
I found a working setup from saschaeggi and just tinkered around until I found this setting. So thank you! I also found more about what this means here. This issue took me way longer than I want to admit and it was so simple. I don't know why the 'Disabling Caching css/js aggregation' page never came up when I was furiously googling a caching issue. Hopefully this answer helps anyone else in this very edge case predicament.
I have webpack setup within my theme root folder with my Drupal theme files. I run everything with Lando, including NPM. I found a nifty trick to switch the dist-dev and dist libraries for development / production builds from thinkshout.
I should note my setup does not include hot-reloading but I can at least compile my files and refresh immediately and see my changes. The issue I was having before is that I would have to stop my watches to drush cr
and that workflow was ridiculous. I've never gotten hot reloading to work with with either BrowserSync or Webpack Dev Server and I might try to again but I need to move on with my life at this point.
I've also note included sass yet, so these files paths will change to include compilation and output for both .scss and .js files but this is the basic bare min setup working.
QUESTION
standings
...ANSWER
Answered 2022-Mar-29 at 15:45You can't do assignment (A=B) in a comprehension. You could possibly use the update function. For example:
QUESTION
I have a command lando info
which has a fairly large multi-line output:
ANSWER
Answered 2021-Nov-11 at 22:21Bash uses POSIX ERE regex flavor, [\w\S]
matches a \
, w
or S
and not any char but whitespace as you expected.
It looks like you just want to grep -o
ut the URLs with a specific pattern, so use
QUESTION
Using Microsoft Azure, I need to find captions and tags for more than 1000 images. I used the following python code to get the captions and tags for images. I run the code. It runs but after while it stops and I get an error. I copy and paste the error at the last.
...ANSWER
Answered 2022-Jan-24 at 04:42Solution 1: Make sure the file you are trying to write is closed first.Just keep it closed
Solution 2: Change the permissions of the directory you want to save to so that all users have read and write permissions.
Solution 3: This happens if you are trying to open a file, but your path is a folder.
This can happen easily by mistake.
To defend against that, use:
QUESTION
I want to merge two arrays through for loops and assign them into a new array.
I have these two arrays:
ANSWER
Answered 2021-Dec-30 at 08:50One way to do this is as follows
QUESTION
I have an application that submits email through the Postfix sendmail utility using the -t option.
We're looking to accommodate utf-8 subject lines and addresses. My understanding is the fields should be encoded as MIME-Header (RFC 2047)?
It appears, however, that sendmail does not recognize that encoding. Mail bounces with e.g.,:
Jan 1 12:23:19 lando postfix/local[3173514]: 3659C1182E4C: to==?UTF-8?B?TWF1cmljZSDDocK8wojDj8KBw4/Ch8OOwrnDjsK8w6HCvcK1w47CtMOOwrc=?=@lando, orig_to=<=?UTF-8?B?TWF1cmljZSDDocK8wojDj8KBw4/Ch8OOwrnDjsK8w6HCvcK1w47CtMOOwrc=?=>, relay=local, delay=0.01, delays=0.01/0/0/0, dsn=5.1.1, status=bounced (unknown user: "=?utf-8?b?twf1cmljzsddock8wojdj8kbw4/ch8oowrndjsk8w6hcvck1w47ctmoowrc=?=")
So it seems to be interpreting the recipient address as a local address.
Is there a way to have sendmail interpret that encoding or is there something else I'm missing?
...ANSWER
Answered 2022-Jan-05 at 08:55You can't MIME-encode email address. Support for "Internationalized Email Headers" is described in RFC 6532. You need to make sure that all SMTP servers your emails are going through support SMTP Extension for Internationalized Email. See also Overview and Framework for Internationalized Email
QUESTION
I wanted to make a championship calculator/simulator to help figure out the different combinations of how a driver could win the championship.
After digging around I figured I needed to use itertools. Below is what I have so far. The problem is that at the moment it is generating every position for every driver when I only need it to assign 1 position per driver for every combination.
...ANSWER
Answered 2021-Oct-23 at 13:19I don't know if I understood correctly, but I think you might want to generate the permutations for the drivers; correct me if I am wrong, but for example, for 3 drivers A, B and C it would be:
QUESTION
I’m working on a Drupal project hosted on platform.sh.
I started to work locally with Lando but I messed things up a bit and I tried to create a second local Lando build for the same project to try some changes, keeping the fist project in it’s broken state.
The problem is that the second project seems to be using the same database as the first one.
This might be related to caching but I don’t wand to lose local database data from the first project and I’m not sure I can safely Lando pull
to get fresh database data from platform.sh for the second project.
ANSWER
Answered 2021-Oct-14 at 15:39TL;DR - change the name
property in the .lando.yml file in your second project.
Lando creates containers based on the name property you set up in your .lando.yml file (or .lando.upstream.yml if there's no .lando.yml file). If you created a second lando project but didnt change the name property, you end up using the same containers from the first project (which is what you're seeing). Stop lando in the second project (ie lando stop
) and then change the name
property in the .lando.yml file in the second project and then do lando start
. Now lando should build new, separate containers for the second project based on the new name.
QUESTION
I think I'm pretty close (I hope) to having xdebug running in a docker container, aiming to connect via Visual Studio Code.
I think that maybe I'm supposed to add a config to the /etc/hosts
file in the container, directing an IP address to the url my files are being served over, but am not sure what that IP address is supposed to correspond to.
The error:
viaxdebug_info()
(and in /tmp/xdebug.log
):
...ANSWER
Answered 2021-Sep-08 at 05:12It looks like you are using Xdebug 3 while some of your configuration parameters are from deprecated Xdebug 2 (remote_host
and remote_connect_back
which is conflicting with new discover_client_host
) - see https://xdebug.org/docs/all_settings. Let's start with cleaning up those:
QUESTION
I'm trying to spin up a laravel instance via lando using php8. I also need to install the php GMP module... I'm very new to docker and lando.
Now it seems as though the php instance that lando uses does not have GMP pre-setup
I found a post somewhere where someone installed some php modules via the lando file and tried to modify my file based on that.
This is my lando file at the moment:
...ANSWER
Answered 2021-Aug-30 at 04:08Thanks to one of the guys over on the lando slack, this is the solution he gave me which works:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install lando
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page