Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Neos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
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
love_飞影
Neos
Commits
a4f28261
Commit
a4f28261
authored
Feb 18, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat/deploy' into 'main'
Feat/deploy See merge request
!106
parents
80659000
3ae6ce56
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
1 deletion
+28
-1
.gitlab-ci.yml
.gitlab-ci.yml
+27
-0
assets/sql-wasm.wasm
assets/sql-wasm.wasm
+0
-0
src/middleware/sqlite.ts
src/middleware/sqlite.ts
+1
-1
No files found.
.gitlab-ci.yml
View file @
a4f28261
...
...
@@ -33,4 +33,31 @@ npm_build:
tags
:
-
linux
script
:
npm run build
artifacts
:
paths
:
-
dist
deploy
:
stage
:
deploy
tags
:
-
linux
only
:
-
main
dependencies
:
-
npm_build
script
:
-
sudo apt-get install rsync
-
'
rsync
-atv
--progress
--human-readable
dist/
kirayamato@8.142.104.5:$NEOS_DEPLOY_PATH'
-
'
rsync
-atv
--progress
--human-readable
assets/
kirayamato@8.142.104.5:$NEOS_DEPLOY_PATH/assets'
-
'
rsync
-atv
--progress
--human-readable
ygopro-database
kirayamato@8.142.104.5:$NEOS_DEPLOY_PATH/ygopro-database'
before_script
:
-
'
command
-v
ssh-agent
>/dev/null
||
(
apt-get
update
-y
&&
apt-get
install
openssh-client
-y
)'
-
eval $(ssh-agent -s)
-
ssh-add <(echo "$NEOS_SSH_PRIVATE_KEY" | base64 -d)
-
mkdir -p ~/.ssh
-
'
[[
-f
/.dockerenv
]]
&&
echo
-e
"Host
*\n\tStrictHostKeyChecking
no\n\n"
>
~/.ssh/config'
-
chmod 700 ~/.ssh
assets/sql-wasm.wasm
0 → 100755
View file @
a4f28261
File added
src/middleware/sqlite.ts
View file @
a4f28261
...
...
@@ -37,7 +37,7 @@ export interface sqliteResult {
let
YGODB
:
Database
|
null
=
null
;
const
sqlPromise
=
initSqlJs
({
locateFile
:
(
file
)
=>
`/
node_modules/sql.js/dist
/
${
file
}
`
,
locateFile
:
(
file
)
=>
`/
assets
/
${
file
}
`
,
});
// FIXME: 应该有个返回值,告诉业务方本次请求的结果,比如初始化DB失败
...
...
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