Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
envsetup
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
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
mediaserver
envsetup
Commits
52b2ad6c
Commit
52b2ad6c
authored
6 years ago
by
Stéphane Diemer
Browse files
Options
Downloads
Patches
Plain Diff
Replaced plain argument of manage.py (refs
#24125
).
parent
84bc5fbd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
set_app_domain.py
+1
-1
1 addition, 1 deletion
set_app_domain.py
with
1 addition
and
1 deletion
set_app_domain.py
+
1
−
1
View file @
52b2ad6c
...
@@ -217,7 +217,7 @@ class SetAppDomain():
...
@@ -217,7 +217,7 @@ class SetAppDomain():
log
(
'
Assuming that the new url is using HTTPS:
"
%s
"'
%
new_url
)
log
(
'
Assuming that the new url is using HTTPS:
"
%s
"'
%
new_url
)
cmds
=
[
cmds
=
[
# set site url in site settings
# set site url in site settings
'
echo
\'
from skyreach_site.base.models import SiteSettings; ss = SiteSettings.get_singleton(); ss.url =
"
%s
"
; ss.save(); print(
"
Site settings saved.
"
)
\'
| su skyreach -c
"
python3 /home/skyreach/htdocs/skyreach_site/manage.py shell -
-plain --no-startup
"'
%
new_url
,
'
echo
\'
from skyreach_site.base.models import SiteSettings; ss = SiteSettings.get_singleton(); ss.url =
"
%s
"
; ss.save(); print(
"
Site settings saved.
"
)
\'
| su skyreach -c
"
python3 /home/skyreach/htdocs/skyreach_site/manage.py shell -
i python
"'
%
new_url
,
]
]
utils
.
run_commands
(
cmds
)
utils
.
run_commands
(
cmds
)
except
Exception
as
e
:
except
Exception
as
e
:
...
...
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