Node.js in LAMP server?
-
wrote on Dec 4, 2023, 7:56 PM last edited by
Hi friends—is there anyway to deploy Node.js on the LAMP server? or a recommended alternative approach?
-
wrote on Dec 4, 2023, 9:59 PM last edited by robi Dec 5, 2023, 7:26 PM
It's already there in the base image, have you tried it?
-
You have to write a custom app - https://docs.cloudron.io/packaging/tutorial/
-
App Devwrote on Dec 5, 2023, 8:31 PM last edited by timconsidine Dec 5, 2023, 8:45 PM
- 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.
-
wrote on Dec 10, 2023, 7:06 PM last edited by
Thanks! I think this will work for us.
-
@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.
wrote on Feb 7, 2024, 3:51 PM last edited by@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?
-
@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?