I invested some time this weekend to upgrade the @thankbox deployment process to use Lasso for frontend assets. Deployment time went from 12 minutes to 20 seconds. Thanks for this awesome tool @carre_sam 
-
Pokaż ten wątek
-
I did this because my Digital Ocean droplet CPU is super underpowered and running 'yarn prod' on it takes ages during which the CPU ran at 12 minutes. It started taking so long that Laravel Forge thought my deployment was hanging and killed it.
1 odpowiedź 0 podanych dalej 2 polubionePokaż ten wątek -
W odpowiedzi do @ValCanBuild
Brilliant! Thanks for sharing Valentin, that makes me really happy to hear
Let me know if you have any questions.1 odpowiedź 0 podanych dalej 0 polubionych -
W odpowiedzi do @carre_sam
There were a few gotchas that I had to address. Like when doing the publishing in GH actions I had to remember to pass *all* the env vars I use with the MIX_ prefix. That one took me a while to figure out
1 odpowiedź 0 podanych dalej 1 polubiony -
W odpowiedzi do @ValCanBuild
Yes that’s one that I might document. Did you provide them as Repo Environment variables or hard-coded?
1 odpowiedź 0 podanych dalej 0 polubionych -
-
W odpowiedzi do @ValCanBuild
Nice, that’s what I’d recommend. I’ll do some testing locally and get an example for the read-me. We’re there any other parts that you could have been better documented?
1 odpowiedź 0 podanych dalej 1 polubiony -
W odpowiedzi do @carre_sam
One thing is that I wanted the Lasso build script to accept multiple commands. I use yarn so I wanted to do "yarn && yarn prod" but it didn't accept the &&. It's fine in my case cause I just ended up running "yarn" separately but worth mentioning.
2 odpowiedzi 0 podanych dalej 0 polubionych -
W odpowiedzi do @ValCanBuild
Just wanted to let you know that I'm working on an update for Lasso which uses a much better compilation process. It also gives you much more freedom, and you will be able to write `npm install && npm run prod` with the new compiler.1 odpowiedź 0 podanych dalej 1 polubiony
Woooo, awesome 
Wydaje się, że ładowanie zajmuje dużo czasu.
Twitter jest przeciążony lub wystąpił chwilowy problem. Spróbuj ponownie lub sprawdź status Twittera, aby uzyskać więcej informacji.