Skip to content

Run Code Server on a Server #807

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
abubakar-bilal opened this issue Jun 25, 2019 · 13 comments
Closed

Run Code Server on a Server #807

abubakar-bilal opened this issue Jun 25, 2019 · 13 comments

Comments

@abubakar-bilal
Copy link

abubakar-bilal commented Jun 25, 2019

I've a server, where my projects are deployed and accessible via urls. What I want to do is, to install code server on my server. Then run code server on my server and access it via browser on my local machine. I don't want to run code server OR sshcode on my local machine.

I also want to access it with some specific url e.g. https://mysite.com/ide

Please let me know is there any way to achieve this?

And what about team access to same project? Do you have team collaboration OR multiple users accessing same project and doing their changes?

@teddy-codes
Copy link

You don't have to run code server on your local machine for this. You would access it via a browser. Code Server would simply listen on the port that you specify. Accessing the machine via ssh(code) is highly recommended.

@deansheather
Copy link
Member

sshcode is an option that's available for you, but it's definitely not the only way. We have guides in the doc/ directory in our repo which should help you with setting up code-server on your own server securely.

At the moment, you can't currently run code-server on a webserver mounted at a non-root path because of a bug: #670 #722

Regarding collaboration and multiple-users (working on same project or working on different projects through a single code-server instance), this is currently not supported but something we're tracking: #33.

@abubakar-bilal
Copy link
Author

@deansheather @code-asher Can you please let me know any deadline about team collaboration feature in code-server? It would be good to have an estimate to use this for our product.

Thanks alot.

@coadler
Copy link
Contributor

coadler commented Jun 26, 2019

Team collaboration is not planned in the near future and has no deadline or estimate

@abubakar-bilal
Copy link
Author

@coadler Any idea if I can run vs live share with code-server in some way?

@coadler
Copy link
Contributor

coadler commented Jun 26, 2019

It's not open source so we cannot provide it on our marketplace

@abubakar-bilal
Copy link
Author

@coadler So right now, we cannot use code-server in a scenario where we need teams to collaborate on code via IDE? But it's definitely very good using in single user case.

@coadler
Copy link
Contributor

coadler commented Jun 26, 2019

Unfortunately there is no first class support for collaboration, although it seems some people have had live share working in #33

@yw662
Copy link

yw662 commented Jun 26, 2019

what if you and your team just open multiple browser pages of code-server site ?

I am not quite sure how it would work, but it seems to be somehow usable.

@deansheather
Copy link
Member

@yw662 It doesn't work. You'll run into problems if multiple browsers access a code-server instance simultaneously, especially if they are working on the same files.

@teddy-codes
Copy link

Curious, is there anything like sync.Mutex for files? This might allow for this to work.. Not entirely sure though.

@coadler
Copy link
Contributor

coadler commented Jul 1, 2019

There's flock but the IDE would have to do a lot more than just lock files for writing, such as conflict resolution and the like. It's definitely a beast all of its own.

Going to close since it seems like the original issue was solved.

@coadler coadler closed this as completed Jul 1, 2019
@teddy-codes
Copy link

@coadler I know that vscode has some built-in file resolution when the copy on disk does not match the one in the editor. What are your thoughts about that? Not sure if as an unexpected side effect, code-server has this functionality.

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

No branches or pull requests

5 participants