question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

for production mode, you stated just run "build" but I got errors in my server when I did that

See original GitHub issue

image

I am also using Docker compose for production by the way. But I don’t think that matters.

What worked for me in production was I needed to run

sudo docker-compose -f production.yml run --rm django python manage.py tailwind install

Followed by

sudo docker-compose -f production.yml run --rm django python manage.py tailwind build

At least that’s true for the very first time.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
simkimsiacommented, Apr 26, 2021

Thank you Tim

1reaction
timonwebcommented, Apr 26, 2021

Yes, generally it’s a good idea to commit package-lock.json, since it “freezes” your dependencies and you can be sure that you have same versions everywhere.

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm run build success but got an error when I run next start
I execute npm run build success but got an error message > Could not find a valid build in the '.next' directory! Try...
Read more >
Identify and Fix Build and Deployment Errors in Your Angular ...
In this guide, you will learn how to spot some of the most common build and deployment errors and how to resolve them...
Read more >
How to fix build failures with `create-react-app` in production
If your build is using create-react-app and has been failing since approximately the 18th of June 2020, this post will help you fix...
Read more >
The command "npm run build -- --prod" exited with code 1 error
Try running: ng build "prod" and see what the actual error is.
Read more >
Reactjs Build Production: Optimize Performance - CopyCat Blog
In this article, we will be taking a deep dive into the Reactjs build production, deployment, and tips on optimising your app's performance....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found