plasmicapp / plasmic

Visual builder for React. Build apps, websites, and content. Integrate with your codebase.
https://www.plasmic.app
MIT License
4.65k stars 374 forks source link

Cant run self hosted server in production mode #124

Open maliknajjar opened 1 week ago

maliknajjar commented 1 week ago

I successfully self-hosted the Plasmic server on my local machine, but when I try to host it on a server with a public IP, I can't open a project in the canvas. I believe the issue is that some part of the code is trying to access localhost, assuming I'm on the same machine, even though I'm accessing it from a different machine. Can you help me set up my self-hosted Plasmic server in production mode and not in dev mode? I couldn't find any documentation on this aspect on your website or in your repository.

IcaroG commented 1 week ago

Hello @maliknajjar,

It is hard for us to help you debug this, but I would recommend looking for references in code for hard coded URLs like studio.plasmic.app, host.plasmicdev.com.

maliknajjar commented 1 day ago

Hi @IcaroG thank you for responding. I really appreciate it in order for us the run the application in dev mode we just need to execute this command: npm run dev and the app will run at localhost:3003 this is useful for contributing to the project but in our case we want to host the plasmic server in our servers. so we want to run it as a production mode can you tell us how to do that?