Skip to content
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

What is the approach are you using to serve the website in production? #782

Closed
nazarepiedady opened this issue Jul 24, 2023 · 5 comments
Closed

Comments

@nazarepiedady
Copy link
Contributor

nazarepiedady commented Jul 24, 2023

I am working on a localised version of this website that serves the documentation in Portuguese. I did recently update the source code to match the updates and changes done in this repository. Still, I am struggling to serve the new codebase because it is breaking everything at all times, I am really without brilliant ideas about the solution to the problem.

I am serving the website through Netlify services since it was using the middleman static site generator, and this is the traceback of the errors I am having. Could you say what I am doing wrong below?

I am saving the source code here: https://github.com/nazarepiedady/sass-docs-pt

Screenshot - Build details Builds nazarepiedady Netlify

@nazarepiedady
Copy link
Contributor Author

@nex3 could you provide some light to the problem?

@nex3
Copy link
Contributor

nex3 commented Jul 27, 2023

It looks like your Netlify instance already has a .language directory checked out, and that this directory has a modified package-lock.json file which is causing git to fail when it attempts to check out the latest revision. I'm not sure why that directory would exist already or persist across deploys, though. Is it possible that you have some caching setting turned on?

@nazarepiedady
Copy link
Contributor Author

Yes @nex3 , the caching feature of the Netlify platform is enabled, because this allows me not to serve a broken website when a new build fail.

So what is your suggestion or what do you recommed to solve this problem?

Do you think that if I delete the package-lock.json file this problem will be solved?

@nex3
Copy link
Contributor

nex3 commented Jul 31, 2023

I think you need to disable caching, so that this runs a clean build from scratch each time.

@nazarepiedady
Copy link
Contributor Author

@nex3 thanks, you saved me.

I am closing this issue because the problem is already solved.

Friendly-users added a commit to Friendly-users/sass-site that referenced this issue Jun 27, 2024
-----
It is inappropriate to include political and offensive content in public code repositories.

Public code repositories should be neutral spaces for collaboration and community, free from personal or political views that could alienate or discriminate against others. Political content, especially that which targets or disparages minority groups, can be harmful and divisive. It can make people feel unwelcome and unsafe, and it can create a hostile work environment.

Please refrain from adding such content to public code repositories.
---

 sass#700 sass#701 sass#702 sass#703 sass#704 sass#705 sass#706 sass#707 sass#708 sass#709 sass#710 sass#711 sass#712 sass#713 sass#714 sass#715 sass#716 sass#717 sass#718 sass#719 sass#720 sass#721 sass#722 sass#723 sass#724 sass#725 sass#726 sass#727 sass#728 sass#729 sass#730 sass#731 sass#732 sass#733 sass#734 sass#735 sass#736 sass#737 sass#738 sass#739 sass#740 sass#741 sass#742 sass#743 sass#744 sass#745 sass#746 sass#747 sass#748 sass#749 sass#750 sass#751 sass#752 sass#753 sass#754 sass#755 sass#756 sass#757 sass#758 sass#759 sass#760 sass#761 sass#762 sass#763 sass#764 sass#765 sass#766 sass#767 sass#768 sass#769 sass#770 sass#771 sass#772 sass#773 sass#774 sass#775 sass#776 sass#777 sass#778 sass#779 sass#780 sass#781 sass#782 sass#783 sass#784 sass#785 sass#786 sass#787 sass#788 sass#789 sass#790 sass#791 sass#792 sass#793 sass#794 sass#795 sass#796 sass#797 sass#798 sass#798 sass#799
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants