Join the Webstudio community

Updated 2 months ago

Serving a Self-Hosted Site After `npm run build`

At a glance
while self-hosting the site, after npm run build ... how can the app be started?
1
S
B
I
22 comments
is it npx serve .? ... can we setup a service using pm2?
I ran this:

Plain Text
PORT=3000 npx remix-serve build/server/index.js


The site is loading and then disappearing ... pls suggest?

https://wscv.notion.lol/
getting this error
Attachment
CleanShot_2024-09-08_at_23.37.43.png
looks like coz of this in my html embed

Plain Text
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Inter+Tight:wght@600;700&display=fallback');
Remove vercel plugin from vite
how do i do that?
remix.config.js or ts
it doesn't seem to be there ... where should I check?

I ran the exact commands here with vanilla template

https://docs.webstudio.is/university/self-hosting
Attachment
CleanShot_2024-09-08_at_23.43.28.png
What are you doing, step by step?
yes self host ...

exact steps here https://docs.webstudio.is/university/self-hosting/cli#commands

and then

PORT=3000 npx remix-serve build/server/index.js
It was like 100 times people give link to docs and say that they did same
this seems to be causing the error on self-host
Attachment
CleanShot_2024-09-08_at_23.47.06.png
What are you doing πŸ˜‰ how I can repeat
So specific project?
If you dont wanna share to all give me a link plz
Without reproducible example I have no way to fix
DMing you the lin
If it matters, it's not working for me either
Add a reply
Sign up and join the conversation on Discord