Run VS Code on any machine anywhere and access it in the browser.
Arm please vist code-server code-server arm
View
Install
Datebase :You are advised to create a Docker container for the database
1 | docker run -it -d \ |
Let’s go to code-server first
Turn on SSH
1 | cat code-server/code-server.sh | grep ssh |
Open SSL
First, upload your certificate file to code-server, or drag your file to code-server to upload
1 | vi /root/.config/code-server/config.yaml |
Restart the code-server container
1 | docker restart code-server |
or vist web like https://localhost:8765/?folder=/www/bak/ssl_cert/
Then you can notice in the upper right corner that you need to configure SSL to use it
It’s like real code-server
Xdebug
1 | php74-fpm && nginx |
Open https://localhost:8765/?folder=/www/wwwroot/myapp on the page
Breakpoint testing with PHP debug plug-in
Then visit the web page, such as https://localhost:31003/
Other
1 | pecl74 install |
Bug
- When you switch to the applet and then switch to the directory, the page will not respond. It may be a problem with PWA. You just need to open it with a browser
Then it will be displayed normally
- on Mac &&
ctrl + ~
Vim’s ESC button cannot be used on the command line
1 | vim 1 |
PHP5.6 with PHP xdebug.launch.json ; There is a special configuration, but I forgot, please help me
I had to consider using the Github API to automatically obtain new versions of software packages due to the high update frequency and low compilation speed,so ,The container may be started later. The update program will be automatically executed and the code server version will be updated. You need to restart the docker container manually
If you have other suggestions or ideas, please feel free to send them
XRSec has the right to modify and interpret this article. If you want to reprint or disseminate this article, you must ensure the integrity of this article, including all contents such as copyright notice. Without the permission of the author, the content of this article shall not be modified or increased or decreased arbitrarily, and it shall not be used for commercial purposes in any way