Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Loach's avatar
Level 11

Run Node Api in subdomain using forge

I am writing a graphql api in node. I was wondering if it is possible to run it as a subdomain with forge while my main website is using php Laravel.

What step are needed if possible.

0 likes
2 replies
bobbybouwmann's avatar

Well basically you can just create a new site in Forge with the subdomain. Then you can deploy your repo to that site. Finally you need to set up a daemon to run node server.js. That should work most of the time! You might need to adjust the port that is set in the nginx setup

Loach's avatar
Level 11

Thanks that seems simple enough. Will give it a shot.

Please or to participate in this conversation.