Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
MCViz
MCViz.web
Commits
9b5b6c99
Commit
9b5b6c99
authored
Dec 23, 2014
by
Tim Brooks
Browse files
Create dev_serve symlink
parent
6897851f
Changes
2
Hide whitespace changes
Inline
Side-by-side
bootstrap.py
View file @
9b5b6c99
...
...
@@ -1839,8 +1839,7 @@ def create_bootstrap_script(extra_text, python_version=''):
return
content
.
replace
(
'##EXT'
'END##'
,
extra_text
)
import
os
,
subprocess
,
textwrap
from
os.path
import
join
import
os
,
subprocess
def
after_install
(
options
,
home_dir
):
dirs
=
[
'log'
,
'uploads'
,
'renders'
]
for
folder
in
dirs
:
...
...
@@ -1860,6 +1859,11 @@ def after_install(options, home_dir):
print
(
"Error installing mcviz.web"
)
return
try
:
os
.
symlink
(
"env/bin/mcwebviz"
,
"dev_serve"
)
except
OSError
:
pass
print
(
""
)
print
(
"Check the user running apache can access these folders"
)
print
(
"e.g. > chown ${USER}:www-data log uploads renders"
)
...
...
mcviz/utils/make_bootstrap.py
View file @
9b5b6c99
...
...
@@ -3,8 +3,7 @@
import
virtualenv
,
textwrap
OUTPUT
=
virtualenv
.
create_bootstrap_script
(
textwrap
.
dedent
(
"""
import os, subprocess, textwrap
from os.path import join
import os, subprocess
def after_install(options, home_dir):
dirs = ['log', 'uploads', 'renders']
for folder in dirs:
...
...
@@ -24,6 +23,11 @@ def after_install(options, home_dir):
print("Error installing mcviz.web")
return
try:
os.symlink("env/bin/mcwebviz", "dev_serve")
except OSError:
pass
print("")
print("Check the user running apache can access these folders")
print("e.g. > chown ${USER}:www-data log uploads renders")
...
...
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