首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >Code Server Update

Code Server Update

作者头像
XRSec
发布2022-03-15 21:16:56
发布2022-03-15 21:16:56
1.6K0
举报
文章被收录于专栏:XRSec.BlogXRSec.Blog

https://github.com/coder/code-server/discussions

https://blog.zygd.site/go.html?u=aHR0cHM6Ly9jZHIuY28vam9pbi1jb21tdW5pdHk=

https://twitter.com/coderhq

https://app.codecov.io/gh/cdr/code-server

https://github.com/coder/code-server/tree/v3.11.1/docs

https://hub.docker.com/r/xrsec/code-server

https://github.com/XRSec/Code-Server-Update/actions/workflows/Docker_Code_Server.yml

Run VS Code on any machine anywhere and access it in the browser.

Highlights

  • Code on any device with a consistent development environment
  • Use cloud servers to speed up tests, compilations, downloads, and more
  • Preserve battery life when you’re on the go; all intensive tasks run on your server

Requirements

See requirements for minimum specs, as well as instructions on how to set up a Google VM on which you can install code-server.

TL;DR: Linux machine with WebSockets enabled, 1 GB RAM, and 2 CPUs

Preview

Open the folder where you want XDebug

Getting started

代码语言:javascript
复制
docker run -it -d \
	--name code-server \
	-p 31004:22 \
	-p 5050-5051:5050-5051 \
	-p 8765:8765 \
	-p 31000-31003:31000-31003 \
	xrsec/code-server:latest

# If you need auto start, please revamp

docker run -it -d \
	--name code-server \
	--restart=always \
	-p 31004:22 \
	-p 5050-5051:5050-5051 \
	-p 8765:8765 \
	-p 31000-31003:31000-31003 \
	xrsec/code-server:latest

# Docker
# 5050-5051:5050 	: code-server live server
# 8765:8765	:https web port
# 31004:22	:ssh
# 31000-31003	:liveserver & more
# -v "/home/admin/Document/code:/www/wwwroot" :Site path

# SSL && PassWord
# Password [$ docker logs code-server]
# ca.pem [$ docker cp code-server:/www/bak/ssl_cert/ca.pem .] or vist https://localhost:8765/?folder=/www/bak/ssl_cert to download ca.pem
# Exporting certificates first, then trusting, facilitates PWA technology implementation
# Edit Password
# vist https://localhost:8765/?folder=/root/.config/code-server/ & edit config.yaml then [$ docker restart code-server ]

# PHP
# $ pkill php && php56 && nginx
# $ pkill php && php74 && nginx

You can also take a look at this article see

About

  • Xdebug mode supporting php7 and PHP5
  • Convenient and fast, of course, it also comes with PHP environment and
  • Based on docker container, without any manual operation, the source code can be viewed
  • With the code plug-in library, it is a sharp tool for code audit

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

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2021-10-03,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Highlights
  • Requirements
  • Preview
  • Getting started
  • About
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档