godbout

godbout

Owner at https://sleeplessmind.com.mo

Member Since 4 Years Ago

Macau

Experience Points
58,755
Total
Experience

1,245 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
573
Lessons
Completed
Best Reply Awards
1
Best Reply
Awards
  • start-engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber-token Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

Level 12
58,755 XP
Aug
11
3 months ago
Activity icon

Replied to Npm Run Prod, Commits, And Forge

@bobbybouwmann thanks! There's a mention in the doc that yes, npm ci doesn't rewrite any package files. Seems the way to go.

Here's the doc for those interested: https://docs.npmjs.com/cli/ci.html

Activity icon

Replied to Npm Run Prod, Commits, And Forge

@nash good catch. v12 on my local dev, v10 on production. Still, I don't get the idea behind it. Just for install, I wouldn't expect neither package.json nor package-lock.json to change! Thanks.

Aug
04
3 months ago
Activity icon

Replied to Npm Run Prod, Commits, And Forge

@nash

Here's a part of the diff between the package-json.lock i commit and the one that gets generated by npm run prod:

                 "ansi-regex": {
                     "version": "2.1.1",
                     "bundled": true,
-                    "dev": true,
-                    "optional": true
+                    "dev": true
                 },
                 "aproba": {
                     "version": "1.2.0",
@@ -4111,14 +4110,12 @@
                 "balanced-match": {
                     "version": "1.0.0",
                     "bundled": true,
-                    "dev": true,
-                    "optional": true
+                    "dev": true
                 },

the error message i get is just a basic git merge conflict. the npm run prod works well.

my deploy script:

cd /home/forge/hq.sleeplessmind.info
git pull origin master

composer install --no-dev --no-interaction --optimize-autoloader

echo "" | sudo -S service php7.3-fpm reload

npm install
npm run production

what i'm thinking doing is once npm ran, i'll delete both package.json and package-json.lock so that at the next deploy, git can pull. it's dumb, but it should work.

Activity icon

Replied to Npm Run Prod, Commits, And Forge

@snapey, I omitted it in my description but npm install is run before npm run prod. the issue is that npm run prod updates package.json and package-lock.json, which then conflicts git tries to pull the update from the repo. see next comment on how those package files change.

Aug
03
3 months ago
Activity icon

Started a new Conversation Npm Run Prod, Commits, And Forge

i don't get how the workflow is supposed to be. i develop on my local machine with npm run watch. my package.json and package-lock.json are committed. then i push to github, that sends the hook to forge. forge tries to install the repo but every time it can't because npm run prod generates a different package.json and package-lock.json and it can't merge. that means that every time before pushing my commits, i need to remember to run npm run prod to be sure i'll get the same files than on production. this is dumb. anyway to improve this? i thought that would work like composer, once you get your composer.json and composer.lock, they are not rewritten when installing on the server. but npm rewrites everything, breaking the repository pull.