Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
srvpro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
srvpro
Commits
11b388a0
Commit
11b388a0
authored
Mar 08, 2016
by
mercury233
Browse files
Options
Browse Files
Download
Plain Diff
Merge
https://github.com/mycard/ygopro-server
into lite
parents
81fea176
54b96fe5
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
49 additions
and
8 deletions
+49
-8
.gitignore
.gitignore
+0
-4
.gitmodules
.gitmodules
+4
-0
Dockerfile
Dockerfile
+20
-0
README.md
README.md
+21
-2
config.json
config.json
+3
-2
ygopro
ygopro
+1
-0
No files found.
.gitignore
View file @
11b388a0
# ignore
# ignore
test*
test*
/ygocore/
/ygocore
/ygopro/
/ygopro
node_modules/.bin/
node_modules/.bin/
node_modules/bunyan/
node_modules/bunyan/
...
...
.gitmodules
0 → 100644
View file @
11b388a0
[submodule "ygopro"]
path = ygopro
url = https://github.com/mycard/ygopro.git
branch = server
Dockerfile
0 → 100644
View file @
11b388a0
FROM
node
RUN
apt-get update
RUN
apt-get
install
-y
git build-essential premake4 libfreetype6-dev libevent-dev libsqlite3-dev liblua5.2-dev libglu-dev libirrlicht-dev
RUN
mkdir
-p
/usr/src/app
WORKDIR
/usr/src/app
COPY
package.json /usr/src/app/
RUN
npm
install
COPY
. /usr/src/app
WORKDIR
/usr/src/app/ygopro
ADD
https://mycard.moe/ygopro/cards.cdb cards.cdb
RUN
premake4
--os
=
linux
--platform
=
x64 gmake
RUN
ln
-s
/usr/lib/x86_64-linux-gnu/liblua5.2.so /usr/lib/liblua.so
WORKDIR
/usr/src/app/ygopro/build
RUN
make
config
=
release ygopro
WORKDIR
/usr/src/app/ygopro
RUN
ln
-s
bin/release/ygopro ygopro
RUN
strip ygopro
WORKDIR
/usr/src/app
CMD
[ "npm", "start" ]
readme
.md
→
README
.md
View file @
11b388a0
## ygopro-server
-lite
## ygopro-server
一个YGOPRO服务器,基于mycard代码修改。
一个YGOPRO服务器,基于mycard代码修改。
现用于
[
YGOPRO 233服
](
http://mercury233.me/ygosrv233/
)
。
现用于
[
YGOPRO 233服
](
http://mercury233.me/ygosrv233/
)
。
...
@@ -33,4 +33,23 @@
...
@@ -33,4 +33,23 @@
*
简易的先行卡更新控制台在http://mercury233.me/ygosrv233/pre-dashboard.html
*
简易的先行卡更新控制台在http://mercury233.me/ygosrv233/pre-dashboard.html
###开发计划
###开发计划
*
重写全部代码,与SalvationServer合并,或作为分支版本
*
重写全部代码,与SalvationServer合并,或作为分支版本
\ No newline at end of file
## Install Docker
```
bash
wget
-qO-
https://get.docker.com/ | sh
```
see https://docs.docker.com/linux/step_one/ for more information.
## Deploy from DockerHub
```
bash
docker run
--name
ygopro
-p
7911:7911
-p
7922:7922
--restart
=
on-failure
-d
mycard/ygopro-server
```
## Build
```
bash
git clone
--recursive
https://github.com/mycard/ygopro-server.git
cd
ygopro-server
docker build
-t
ygopro-server .
```
config.json
View file @
11b388a0
...
@@ -5,12 +5,13 @@
...
@@ -5,12 +5,13 @@
"welcome"
:
"YGOPRO Server"
,
"welcome"
:
"YGOPRO Server"
,
"update"
:
"请更新游戏版本"
,
"update"
:
"请更新游戏版本"
,
"stop"
:
false
,
"stop"
:
false
,
"tips"
:
"http://m
ercury233.me/ygosrv233
/tips.json"
,
"tips"
:
"http://m
ycard.moe/ygopro
/tips.json"
,
"dialogues"
:
"http://m
ercury233.me/ygosrv233
/dialogues.json"
,
"dialogues"
:
"http://m
ycard.moe/ygopro
/dialogues.json"
,
"redis_port"
:
6379
,
"redis_port"
:
6379
,
"enable_websocket_roomlist"
:
false
,
"enable_websocket_roomlist"
:
false
,
"enable_random_duel"
:
false
,
"enable_random_duel"
:
false
,
"mycard_auth"
:
false
,
"mycard_auth"
:
false
,
"post_start_watching"
:
true
,
"post_start_watching"
:
true
,
"TCG_banlist_id"
:
8
,
"TCG_banlist_id"
:
8
,
"enable_TCG_as_default"
:
false
,
"enable_TCG_as_default"
:
false
,
...
...
ygopro
@
ad24b9a2
Subproject commit ad24b9a20c3befea0aa33b2a8ee13ce371a74975
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment