Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MetaGer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open-source
MetaGer
Commits
6e0c88b2
Commit
6e0c88b2
authored
5 years ago
by
Dominik Hebeler
Browse files
Options
Downloads
Plain Diff
Merge branch 'development' into 'master'
Development See merge request
!1465
parents
986bede4
7be4985b
No related branches found
Branches containing commit
No related tags found
2 merge requests
!1504
Master
,
!1465
Development
Changes
3
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+7
-1
7 additions, 1 deletion
.gitlab-ci.yml
app/Models/Quicktips/Quicktips.php
+7
-2
7 additions, 2 deletions
app/Models/Quicktips/Quicktips.php
build.sh
+2
-1
2 additions, 1 deletion
build.sh
with
16 additions
and
4 deletions
.gitlab-ci.yml
+
7
−
1
View file @
6e0c88b2
...
@@ -11,6 +11,8 @@ update(144.76.113.134):
...
@@ -11,6 +11,8 @@ update(144.76.113.134):
-
which sqlite3
-
which sqlite3
script
:
script
:
-
sh build.sh
-
sh build.sh
variables
:
STAGE
:
production
update(metager2)
:
update(metager2)
:
tags
:
tags
:
...
@@ -25,6 +27,8 @@ update(metager2):
...
@@ -25,6 +27,8 @@ update(metager2):
-
which sqlite3
-
which sqlite3
script
:
script
:
-
sh build.sh
-
sh build.sh
variables
:
STAGE
:
production
update(metager3.de)
:
update(metager3.de)
:
tags
:
tags
:
...
@@ -38,4 +42,6 @@ update(metager3.de):
...
@@ -38,4 +42,6 @@ update(metager3.de):
-
which php
-
which php
-
which sqlite3
-
which sqlite3
script
:
script
:
-
sh build.sh
-
sh build.sh
\ No newline at end of file
variables
:
STAGE
:
development
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app/Models/Quicktips/Quicktips.php
+
7
−
2
View file @
6e0c88b2
...
@@ -11,7 +11,7 @@ class Quicktips
...
@@ -11,7 +11,7 @@ class Quicktips
{
{
use
DispatchesJobs
;
use
DispatchesJobs
;
const
QUICKTIP_URL
=
"http://localhost:63825
/1.1/quicktips.xml"
;
private
$quicktipUrl
=
"
/1.1/quicktips.xml"
;
const
QUICKTIP_NAME
=
"quicktips"
;
const
QUICKTIP_NAME
=
"quicktips"
;
const
CACHE_DURATION
=
60
;
const
CACHE_DURATION
=
60
;
...
@@ -19,12 +19,17 @@ class Quicktips
...
@@ -19,12 +19,17 @@ class Quicktips
public
function
__construct
(
$search
,
$locale
,
$max_time
)
public
function
__construct
(
$search
,
$locale
,
$max_time
)
{
{
if
(
env
(
"APP_ENV"
)
===
"production"
)
{
$this
->
quicktipUrl
=
"https://quicktips.metager.de"
.
$this
->
quicktipUrl
;
}
else
{
$this
->
quicktipUrl
=
"https://dev.quicktips.metager.de"
.
$this
->
quicktipUrl
;
}
$this
->
startSearch
(
$search
,
$locale
,
$max_time
);
$this
->
startSearch
(
$search
,
$locale
,
$max_time
);
}
}
public
function
startSearch
(
$search
,
$locale
,
$max_time
)
public
function
startSearch
(
$search
,
$locale
,
$max_time
)
{
{
$url
=
self
::
QUICKTIP_URL
.
"?search="
.
$this
->
normalize_search
(
$search
)
.
"&locale="
.
$locale
;
$url
=
$this
->
quicktipUrl
.
"?search="
.
$this
->
normalize_search
(
$search
)
.
"&locale="
.
$locale
;
# TODO anders weitergeben
# TODO anders weitergeben
$this
->
hash
=
md5
(
$url
);
$this
->
hash
=
md5
(
$url
);
...
...
This diff is collapsed.
Click to expand it.
build.sh
+
2
−
1
View file @
6e0c88b2
...
@@ -8,7 +8,8 @@ if [ -d MetaGer_neu ]; then rm -rf MetaGer_neu;fi
...
@@ -8,7 +8,8 @@ if [ -d MetaGer_neu ]; then rm -rf MetaGer_neu;fi
git clone
"
$path
"
MetaGer_neu
git clone
"
$path
"
MetaGer_neu
cd
MetaGer_neu
cd
MetaGer_neu
composer
install
composer
install
scp
-P
63824 metager@metager3.de:~/.env
.
cp
$ENVFILE
.env
sed
-i
-e
"s/APP_ENV=production/APP_ENV=
$STAGE
/g"
.env
cp
$SUMAS
config/sumas.json
cp
$SUMAS
config/sumas.json
cp
$SUMASEN
config/sumasEn.json
cp
$SUMASEN
config/sumasEn.json
scp
-P
63824 metager@metager3.de:~/blacklistUrl.txt config/
scp
-P
63824 metager@metager3.de:~/blacklistUrl.txt config/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment