run vs view



Install Code Server
Update Code Server
Database:It is recommended to create a Docker container for the database.
Code Language: JavaScriptCode Run Count: 0
docker run -it -d --name vs-db -p 8003:3306 -e "MYSQL_ROOT_PASSWORD=code-server" mariadb:latest# vs-db ip address# $ docker exec -it vs-db bash# $ apt update -y && apt upgrade -y && apt install net-tools iputils-ping# $ ifconfig | grep inet | grep -E -o "(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)"
Let’s go to code-server first.

Enable SSH
Code Language: JavaScriptCode Run Count: 0
$ cat code-server/code-server.sh | grep ssh/usr/sbin/sshd -D &
Open SSL
First, upload your certificate file to code-server, or drag your file to code-server to upload.
Code Language: JavaScriptCode Run Count: 0
vi /root/.config/code-server/config.yamlbind-addr: 0.0.0.0:8080auth: passwordpassword: passwordcert: true
Restart the code-server container.
Code Language: JavaScriptCode Run Count: 0
docker restart code-serverdocker exec -it code-server /bin/zshcd /root/.local/share/code-servercp /root/xrsec.key localhost.keycp /root/xrsec.crt localhost.crtexitdocker restart code-server
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
Code Language: JavaScriptCode Run Count: 0
php74-fpm && nginxphp54-fpm && nginx
Open https://www.php.cn/link/4b9f946525b8fc99573ed7ef8f2918ea on the page.
Breakpoint testing with PHP debug plug-in.
Then visit the web page, such as https://www.php.cn/link/8591efe6006d839c23452153789dc667.
Other
Code Language: JavaScriptCode Run Count: 0
pecl74 installpecl56 install/code-server.sh/root/code-server/server/php/php56/lib/php.ini/root/code-server/server/php/php74/lib/php.ini/etc/nginx/nginx.conf/etc/proxychains.conf/etc/ssh/sshd_config/root/.ssh/root/.zshrc/root/.pip/pip.conf/root/.gitconfig
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.
Code Language: JavaScriptCode Run Count: 0
vim 1iesc ???????? # You cannot use the ESC key to exit editing mode# advice# $ cat /etc/profile # ctrl && Click file path The editor can be summoned
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.
以上就是Online Config VS Code的详细内容,更多请关注创想鸟其它相关文章!
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 chuangxiangniao@163.com 举报,一经查实,本站将立刻删除。
发布者:程序猿,转转请注明出处:https://www.chuangxiangniao.com/p/24209.html
微信扫一扫
支付宝扫一扫