Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
beat.web
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
beat
beat.web
Commits
d4045277
Commit
d4045277
authored
8 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
[utils] Fix installation with new qsetup
parent
fe494c94
No related branches found
No related tags found
1 merge request
!194
Scheduler
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
beat/web/utils/management/commands/install.py
+7
-6
7 additions, 6 deletions
beat/web/utils/management/commands/install.py
with
7 additions
and
6 deletions
beat/web/utils/management/commands/install.py
+
7
−
6
View file @
d4045277
...
...
@@ -130,11 +130,11 @@ def add_group(name):
return
group
def
setup_environment
(
queue_config_filename
):
def
setup_environment
(
queue_config_filename
,
verbosity
):
from
.qsetup
import
setup_environment
as
_metho
d
return
_method
(
queue_config_filename
,
logger
)
from
django.core.management
import
call_comman
d
call_command
(
'
qsetup
'
,
verbosity
=
verbosity
,
reset
=
True
,
config
=
queue_config_filename
)
def
create_sites
():
...
...
@@ -920,7 +920,7 @@ class Command(BaseCommand):
# Sync database
from
django.core.management
import
call_command
call_command
(
'
migrate
'
,
interactive
=
False
,
verbos
e
=
1
)
call_command
(
'
migrate
'
,
interactive
=
False
,
verbos
ity
=
1
)
# Setup sites: 1.Development; 2.Staging; 3.Production
create_sites
()
...
...
@@ -935,7 +935,8 @@ class Command(BaseCommand):
# Sets up the queue and environments
queue
,
environment
=
\
setup_environment
(
arguments
[
'
queue_configuration
'
])
setup_environment
(
arguments
[
'
queue_configuration
'
],
arguments
[
'
verbosity
'
])
# Iterates over projects to install
for
project
in
[
'
system
'
]
+
arguments
[
'
project
'
]:
...
...
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