Renders in dev mode (locally) but not on Deno Deploy
I have this app here: https://github.com/angeldollface/angeldollface.dev
When I run it locally it works fine. When I access it on "angeldollface.dev", though. I see no cube. And the following errors:
GitHub
GitHub - angeldollface/angeldollface.dev: My developer portfolio cr...
My developer portfolio created with Deno, Fresh, and Three.js. :sauropod: :lemon: :gear: (W.I.P.) - GitHub - angeldollface/angeldollface.dev: My developer portfolio created with Deno, Fresh, and Th...
8 Replies
I'm sorry, but I wasn't able to find the answer to your question in the official Deno documentation. However, based on the information you've provided, it seems like there might be an issue that is specific to your application's deployment environment or configuration.
Without the specific error messages or more context, it's difficult to provide a precise solution. However, here are a few general things you could check:
1. Ensure that all your assets (like scripts, stylesheets, and images) are correctly referenced and can be accessed in the production environment.
2. Check if there are any environment-specific variables or configurations that might be causing the issue when deployed.
3. Review the deployment logs for any errors or warnings that could provide more insight into the problem.
4. Make sure that any build or compile steps required for your application are being performed correctly during the deployment process.
Please note that this advice is not based on the Deno documentation, and I recommend double-checking the accuracy of the advice given. It might be helpful to consult with the Deno community or the documentation for Deno Deploy for more specific guidance related to deployment issues.
Helpful Links:
Deno Deploy | Deno
Simple API server
Deno 1.36: More flexible security and expanded testing APIs
Announcing native npm support on Deno Deploy
How to build a static site with Lume
wasmbuild - Using Rust in Deno and Web Apps
Build and Ship Astro Sites with Deno and Deno Deploy
Overview of TypeScript in Deno
Seems like the build directory doesnβt exist, I canβt tell how youβre deploying but did you build or enter the build command on deploy?
No, I didn't. How do I do that?
To deploy to Deno Deploy, weβll make use of the GitHub integration. To use this the code needs to be pushed to a repository on GitHub. Once this has been done, one must go to the Deno Deploy dashboard and create a new project.
Click on the βNew Projectβ button and select the GitHub repository that contains the Fresh project. Select the βFreshβ framework preset, and click on "Advanced options". Enter deno task build
in the βBuild commandβ field. Press "Create project".
https://fresh.deno.dev/docs/getting-started/deploy-to-productionDeploy to production | Fresh docs
Deploy a Fresh application to Deno Deploy in seconds, making it available on
the edge globally - resulting in fantastic user latency worldwide.
I know but how do I modify it after I have already deployed?
That's beyond my knowledge
Do I have redeploy?
Probably best.
Yea maybe