Node.js in LAMP server?
-
- go to your LAMP app settings
- open a Terminal
- type
node -v
and press enter
You should see the version of
node
that is runningSo you should be able to write a
node
app and run it
Even maybe make use of thecron
facility to start/stop, or just run manually. -
@ntnsndr What @robi and @timconsidine suggest will work. What are you trying to deploy though? If it's a full blown app, I recommend creating a pacakge. If it's just a simple cron/tool you are trying to run, you can use their suggestion.
-
@girish said in Node.js in LAMP server?:
@ntnsndr What @robi and @timconsidine suggest will work. What are you trying to deploy though? If it's a full blown app, I recommend creating a pacakge. If it's just a simple cron/tool you are trying to run, you can use their suggestion.
Alright, so in theory one could install a full MERN stack within a LAMP instance, as a development environment, right? This dev stack is getting quite much attention lately. Have you ever counted the number of apps you use which are built in REACT? Apps built with REACT are by the tons nowadays...
Now, in such case, since we already have MongoDB running on the Cloudron instance, wouldn't it be convenient to have a way use that MongoDB server with a MERN stack, instead of running a new MongDB within the LAMP instance?
Now, if that could be implemented in some way on a Cloudron instance, then maybe that could be a LAMP-MERN version or simply a MERN stack, I dunno... What do you guys think?