Comments (5)
I see a similar issue that folks were having remix-run/remix#564 but in my case all works just fine locally and only once I deploy to fly.io do I get a similar error
from indie-stack.
the app
directory isn't copied to the final docker image so your data/blog
directory isn't either. see: https://github.com/SangeetAgarwal/bitoflearning/blob/main/Dockerfile#L52-L59
COPY --from=production-deps /myapp/node_modules /myapp/node_modules
COPY --from=build /myapp/node_modules/.prisma /myapp/node_modules/.prisma
COPY --from=build /myapp/build /myapp/build
COPY --from=build /myapp/public /myapp/public
COPY --from=build /myapp/package.json /myapp/package.json
COPY --from=build /myapp/start.sh /myapp/start.sh
COPY --from=build /myapp/prisma /myapp/prisma
+ COPY --from=build /myapp/app/data /myapp/app/data
from indie-stack.
@mcansh Thank you so much for your help, I now see the landing page at https://bitoflearning-9a57.fly.dev/.
I do see anther error when I attempt to view a post
Error: Unexpected Server Error
at handleDataRequest (/myapp/node_modules/@remix-run/server-runtime/dist/server.js:156:31)
at requestHandler (/myapp/node_modules/@remix-run/server-runtime/dist/server.js:34:18)
at /myapp/node_modules/@remix-run/express/dist/server.js:39:22
but let me investigate to see if I can find out the issue & fix it otherwise I'll ask for help.
Closing this issue.
from indie-stack.
refreshing on a page shows esbuild appears to be missing
from indie-stack.
@mcansh working nicely at https://bitoflearning-9a57.fly.dev/blogs/new-features-in-v1.
Seems along with the esbuild
dependency, I had to add a few more directories to the final docker image
COPY --from=build /myapp/app/components /myapp/app/components
COPY --from=build /myapp/app/layouts /myapp/app/layouts
COPY --from=build /myapp/app/lib /myapp/app/lib
Thank you for the time, much appreciated, have been working on translating (still in an early stage) https://github.com/timlrx/tailwind-nextjs-starter-blog to remix & was working on this project since late Friday 7/22 almost non-stop as I come up to speed w/remix. I'm beginning to understand remix a bit better so again thanks.
from indie-stack.
Related Issues (20)
- Fly Instance runs out of memory on deployment HOT 11
- Failed app run HOT 3
- Missing Environment Variables when Prisma is removed HOT 3
- Env variables undefined in build but fine in dev HOT 1
- pnpm is not preinstalled and causes an error in Cypress HOT 3
- No region defined in the fly deploy command, causes deployment to crash HOT 10
- Remix and Cypress hydration problem HOT 7
- hydration failed,and css file will request twice HOT 1
- npm run dev errors out in windows machines with "Cannot find module '--require/package.json'"
- Error during deployment in Fly.io, Dockerfile needs to give permissons to `start.sh` script HOT 3
- Timeout when Running e2e tests on a fresh installation
- Typecheck fails because it can't find definitions for cypress or @testing-library/cypress HOT 6
- throw new Error(`Failed to kill process ${pid}: ${error}`) after code change HOT 3
- Tailwind SourceMap/EsBuild Issue HOT 4
- Error upon deployment: you must be authenticated
- Cypress custom commands doesn't load HOT 2
- Use `fly launch`/`dockerfile-node` instead of `.dockerignore`, `Dockerfile`, `fly.toml` & `start.sh` HOT 9
- Deployment in Fly.io crashes with JavaScript heap out of memory HOT 5
- bun breaks deploy HOT 2
- Initial commit will not deploy HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from indie-stack.