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
a956cba1
Commit
a956cba1
authored
Mar 24, 2016
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
a61d0c03
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
6 deletions
+9
-6
Dockerfile
Dockerfile
+1
-1
windbot
windbot
+1
-1
ygopro
ygopro
+1
-1
ygopro-server.coffee
ygopro-server.coffee
+2
-2
ygopro-server.js
ygopro-server.js
+4
-1
No files found.
Dockerfile
View file @
a956cba1
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
mono-complete
RUN
apt-get
install
-y
git build-essential premake4 libfreetype6-dev libevent-dev libsqlite3-dev liblua5.2-dev mono-complete
RUN
mkdir
-p
/usr/src/app
WORKDIR
/usr/src/app
...
...
windbot
@
21b03157
Subproject commit
9c005d2a95afbfa152e47cf714e71cad9ea2958d
Subproject commit
21b03157af542d02655abb20006a1681ad4d1681
ygopro
@
58be174a
Subproject commit
738de28542a8e1da61cf449abe1fd3675f2b7f36
Subproject commit
58be174a410a1595e36105dc3ba6951ae70815ee
ygopro-server.coffee
View file @
a956cba1
...
...
@@ -742,9 +742,9 @@ if settings.modules.tips
if
settings
.
modules
.
mycard_auth
and
process
.
env
.
MYCARD_AUTH_DATABASE
pg
=
require
(
'pg'
);
pg
.
connect
process
.
env
.
MYCARD_AUTH_DATABASE
,
(
error
,
client
,
done
)
->
if
(
error
)
return
console
.
error
(
'error fetching client from pool'
,
err
);
throw
error
if
error
client
.
query
'SELECT username, id from users'
,
(
error
,
result
)
->
throw
error
if
error
done
();
for
row
in
result
.
rows
users_cache
[
row
.
username
]
=
row
.
id
...
...
ygopro-server.js
View file @
a956cba1
...
...
@@ -839,10 +839,13 @@
pg
=
require
(
'
pg
'
);
pg
.
connect
(
process
.
env
.
MYCARD_AUTH_DATABASE
,
function
(
error
,
client
,
done
)
{
if
(
error
)
{
return
console
.
error
(
'
error fetching client from pool
'
,
err
)
;
throw
error
;
}
return
client
.
query
(
'
SELECT username, id from users
'
,
function
(
error
,
result
)
{
var
k
,
len
,
ref
,
row
;
if
(
error
)
{
throw
error
;
}
done
();
ref
=
result
.
rows
;
for
(
k
=
0
,
len
=
ref
.
length
;
k
<
len
;
k
++
)
{
...
...
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