-
Notifications
You must be signed in to change notification settings - Fork 5.9k
How to run projects, #555
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
Comments
You could mount a directory on your host filesystem to |
Bummer, I was hoping this was an all in one solution. Would've been nice to map a port # to a URL path of the project and watch it live in chrome. hmm. Guess I'll continue using my VScode desktop app on my laptop. |
I think this is very possible. I’m doing it right now with Apache. Just setup Nginx to point to that folder and to map ide.domain.com to coder. In coder’s container, make sure you mount that directory and it should just work |
@triDcontrols The first option, previewing: There's an extenstion called "Live HTML Previewer" that allows the previewing of html as you work on it, and it works with coder. If the second options: Try the SFTP plugin, with some configuration (Really easy config) it will upload to your webserver via ftp or sftp, thus allowing you to simply refresh the page. The last one: Coder is meant to vscode, not a webserver, just as your desktop doesn't allow a webserver to be run, nor does coder. Atleast not by default. Search for this plugin: "Preview on Web Server", it might be what you want. |
@dmratcliffe this seems related to another comment I made which basically states that if we had a known/fixed list of http paths that are used by coder, that would allow us to route an unused uri path to the application. So the coder ide is at |
I'm closing this as it seems the question was answered but let me know if anything is still unclear. |
I do think it would be interesting to have a way built into code-server to proxy/tunnel to services and files running on the remote server/Docker. Tracking for that is here: #512. |
This may be the easiest question, but I cannot figure this out. How do I run projects? Installation went great, I have it in a Docker w/ Nginx reverse proxy.
I mean I write a HTML and Js, import CSS from CDN etc and how do I get my project to run in a browser. I cannot find the docs.
Will the project path be the url path? When I try this, I get a 404.
https://code.mydomain.com/project/demo/demo.html
The text was updated successfully, but these errors were encountered: