Files
mir-godot/wiki/course/2.0.0.md
makeyangcom 1ae4b6d08b 3.0.0
2024-03-14 10:48:48 +08:00

54 lines
965 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 第二课
> 第二课时操作引导文档。
### 虚拟IP地址固定
> 根据课程在Hyper-V管理器中进行相关的设置
### GitHub的访问加速
> 将wiki目录中hosts文件中的服务器IP修改后覆盖到`C:\Windows\System32\drivers\etc`
> 将wiki目录中config文件中的服务器IP修改后覆盖到`C:\Users\用户名\.ssh`
> 根据课程创建自己的代码仓库并上传源码到自己的仓库
```shell
# 上传源码到仓库的命令脚本
git add .;git commit -m "main";git push origin main
# 或执行脚本文件
./push.bat
```
### 将服务器中项目替换为自己的项目
```shell
ssh root@172.20.74.71
```
```shell
cd /opt
```
```shell
sudo rm -rf Engine2D
```
```shell
sudo chmod +x tools/*.sh
```
### GoLand编辑器配置
> 根据课程配置GoLang代理加速依赖库的下载
```shell
GOPROXY=https://goproxy.io,direct
```
> 根据课程下载后端Go程序的依赖库
```shell
go mod download
```