Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Miloš Diviš
deploy script
Commits
aa90a121
Commit
aa90a121
authored
Mar 19, 2014
by
Miloš Diviš
Browse files
maintenance mode sed corrected
parent
082efad2
Changes
1
Hide whitespace changes
Inline
Side-by-side
deploy.sh
View file @
aa90a121
...
...
@@ -47,9 +47,7 @@ scp -q -i $key_path $user@$server:$remote_dir/www/index.php temp/
# set maintance mode if app is on remote
if
[
-f
temp/index.php
]
then
sed
-i
"s/
\/\/\s
*require '.maintenance.php';/require '.maintenance.php';/"
\
temp/index.php
sed
-ri
"/^(<
\?
php|<
\?
)/a require '.maintenance.php';"
temp/index.php
rsync
-az
\
temp/index.php
$user
@
$server
:
$remote_dir
/www/
...
...
Write
Preview
Supports
Markdown
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