#Trying to deploy remixjs but docs arent helpful

1 messages · Page 1 of 1 (latest)

limpid whale
#

What are you deploying on? how you running the app?

#

not much documentation on deploy cuz there are a ton of deploy targets and a lot of cloud providers handle all that stuff magically by just knowing it's a node app and where the main entry point is.

#

and all this sounds like stuff with your hosting setup, not really remix's bag. But with some details we can helpp

#

how are you starting the app?

#

oh you using nginx

#

with a proxy

#

idk, I do it, seems like the proxy is an unneeded complication

#

also npm run dev is like... not what you should be doing in prod.

nova lodge
#

Do you have a Remix backend or an external backend? (Even if on the same machine behind a proxy)?

limpid whale
#

that turns on a lot of nasty dev stuff like hmr and wha tnot

#

I can see why your app wuldn't work as that uses some websocket/worker stuff that might be trying to start up and since you're not proxying it...

nova lodge
#

Any errors in the console? In the browser or in the running backend itself?

limpid whale
#

I use pm2 to start up my express server and it just does node myexperess.js

proven vessel
#

npm run start ?

limpid whale
#

make sure i deploy the stuff from NODE_ENV=production npm run build

#

check your css paths that it's rendering

#

OH

#

that's your entire express server?

#

just pointing to build?

#

yeah should look at the express templtes you need A LOT more than that.

nova lodge
#

NGINX not provide currect redirect to your bundle...

limpid whale
#

for example you don't have the static stuff wired up.

#

so of course yoru css doesn't work

nova lodge
#

You should have an error in browser devtools

limpid whale
#

well there are express templates for that.

nova lodge
#

Just use Remix + Vite

#

)))

limpid whale
#

the starting steps are in the stacks...

#

like everyting points you to start with a stack

#

the indie stack is built for deployment on fly...

#

the blues stack is the one that comes with the express template

#

nah you could easily use prism in any stack

#

people build custom stacks all the time, I have one I made that uses all our internal stuff at work and uses stuff.

#

but you can just look at the blues stack and steal their express setup and throw that in your indie sta k

#

you were a lovely person to try to help, great personality. I'm glad I spent my time doing this. good luck on your journey