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

Websites malfunction upon deployments #148

Open
jadasse opened this issue Sep 18, 2022 · 3 comments
Open

Websites malfunction upon deployments #148

jadasse opened this issue Sep 18, 2022 · 3 comments

Comments

@jadasse
Copy link

jadasse commented Sep 18, 2022

I don't think converting the javascript to a website is working. Vercel does not do anything; upon deployment, it just hangs. Netlify gives me an error saying: "yarn run v1.22.5 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. | warning package.json: No license field error Command "build" not found." and the webpage says "Not Found" and gives me a Request ID. The GitHub Pages is successful; however, when I enter the deployment page, all that is left is the "Green Flag" button. I am trying to use this guide: https://leopardjs.com/help/publish-with-vercel. What is happening?

@towerofnix
Copy link
Member

This is referring to the Publish your project as a website! tutorial on the Leopard website, linked from the homepage. I'm not familiar with Vercel and supporting deployment so I won't be able to help address this issue, sorry!

@jadasse
Copy link
Author

jadasse commented Mar 11, 2023

This is referring to the Publish your project as a website! tutorial on the Leopard website, linked from the homepage. I'm not familiar with Vercel and supporting deployment so I won't be able to help address this issue, sorry!

Vercel was not the main focus but thanks anyway I guess (this is old)

@towerofnix
Copy link
Member

Oh whoops yeah, my fault for managing issues near midnight 😅

If this is something you're still interested in working on, do you know if it's possible to share the exact files which are being deployed to Netlify? It seems a little weird to me for there to be a package.json at all, since Leopard projects should be able to deploy on a completely static website (it's just a normal index.html and static assets/code files).

Actually, it sounds like yarn build or npm run build might just be the Netlify default. I don't know if that's something you can configure directly on CodeSandbox, but you may be able to follow the instructions here and clear the "basic build settings" section (Step 5). Then a second deployment should work correctly.

It sounds like the GitHub Pages build got closer. Did this project work correctly when you first converted it with Leopard, on the codesandbox.com website / online text editor? GH Pages should be basically just a copy of what you see on CodeSandbox. If all you saw was the "green flag" button on CodeSandbox, that means there is a compatibility error in Leopard or sb-edit (it's not 100% compatible with Scratch yet) — but the deployment to GH Pages is probably working too.

On the other hand, if the project does run on CodeSandbox but not GitHub Pages, that's definitely some kind of issue with deployment and would take some further investigation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants