c9 / core

Cloud9 Core - Part of the Cloud9 SDK for Plugin Development https://c9.github.io/core/ https://c9.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Connect to the IDE from a subdomain?

neocamel opened this issue · comments

I've got Cloud9 up and running on my remote VPS, and I can access it by going to MYSERVERIP:8181

What I'd prefer would be to go to c9.MYDOMAINNAME.com and access the IDE from there. Is that possible?

Also, can I use SSL? So like: https://c9.MYDOMAINNAME.com?

Additionally, is there a way to keep the Cloud9 process persistent? So I don't have to log in to terminal and run "node server.js" every time I want to access the IDE?

Sorry if these are noob questions but I'm just starting to dabble in web-based IDEs and I'd love to get my workflow streamlined. Thanks!

I can help on this some. You could use a proxy on your server to route the subdomain request through to the IP:PORT. Do you know if you're running this on nginx or apache?

I'm not sure on the SSL question but will look into it.

You can keep Cloud9 persistent using a node process manager, a very common one I like to use is PM2, it's pretty easy to get something up and running with it.
https://pm2.keymetrics.io/

Thanks for the reply!

It's an Apache server. I think since my initial message, I've changed the direction of my workflow. Now, I'm developing from a Raspberry Pi on my local network that I have here at my office. I also discovered that Visual Studio Code allows you to connect directly to a remote server via SSH, and access the remote server's files directly, without having to download them to the local machine.

So basically, instead of having my IDE provided by my server and displayed on a remote URL, I'm using a local IDE, but connecting to my remote server from inside the IDE. I develop on two different machines (one Mac and one PC), so sometimes the settings in the IDE need to be updated in two places, but it's been a pretty efficient workflow so far.

I'll need to look into node managers more thoroughly, as even with the Raspberry Pi server, there are still occasions when I would like to have a process running at all times that the server is running. Thanks!