how to run both node.js and laravel on the same server using laravel forge

Posted 2 years ago by ctf0

the main idea is to have SPA app "using vue / vue router" that use "Laravel" to fetch and save data.

from what i understood so far that i will need to have two servers running

  • nodejs to serve the UI
  • php to serve the data

and as in https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-14-04 it talks about having 2 servers which what most will do anyway, but i wanted to first test how things will communicate on forge and how to configure nginx using only one server b4 going through splitting into 2

Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up


Reply to

Use Markdown with GitHub-flavored code blocks.