Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant run self hosted server in production mode #124

Open
maliknajjar opened this issue Jun 24, 2024 · 2 comments
Open

Cant run self hosted server in production mode #124

maliknajjar opened this issue Jun 24, 2024 · 2 comments

Comments

@maliknajjar
Copy link

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
Copy link
Contributor

IcaroG commented Jun 24, 2024

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
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants