Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

Connect to the IDE from a subdomain? #548

Open
neocamel opened this issue Feb 6, 2020 · 2 comments
Open

Connect to the IDE from a subdomain? #548

neocamel opened this issue Feb 6, 2020 · 2 comments

Comments

@neocamel
Copy link

neocamel commented Feb 6, 2020

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!

@jantznick
Copy link

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/

@neocamel
Copy link
Author

neocamel commented Apr 1, 2020

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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants