Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
W
Wordpress Bin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ebiwd
Wordpress Bin
Commits
1af408ec
Commit
1af408ec
authored
Jan 07, 2020
by
Sandeep Kadam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added correct folder path to update wp-config
parent
4acbf00f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
deploy
deploy
+1
-1
No files found.
deploy
View file @
1af408ec
...
@@ -86,7 +86,7 @@ do
...
@@ -86,7 +86,7 @@ do
if
[
"
${
SITE_IS_SUBPATH
}
"
=
"YES"
]
;
then
if
[
"
${
SITE_IS_SUBPATH
}
"
=
"YES"
]
;
then
echo
"Update URL in wp-config for site :-
${
PROJECT_NAME
}
"
;
echo
"Update URL in wp-config for site :-
${
PROJECT_NAME
}
"
;
# Overwrite the site url in wp-config.php file
# Overwrite the site url in wp-config.php file
ssh
${
SSH_OWNER
}
@
${
_SERVER
}
"cd
${
VM_CORE_PATH
}
/
${
RELATIVE_DOCUMENT_ROOT
}
/
&& sed -E -i'' '/(WP_HOME|WP_SITEURL)/d'
${
RELATIVE_SETTINGS_SRC
}
/wp-config.php && ~/bin/wp --path=
${
VM_CORE_PATH
}
/
${
RELATIVE_DOCUMENT_ROOT
}
config set WP_HOME '
${
WP_SITE_URL
}
' && ~/bin/wp --path=
${
VM_CORE_PATH
}
/
${
RELATIVE_DOCUMENT_ROOT
}
config set WP_SITEURL '
${
WP_SITE_URL
}
'"
;
ssh
${
SSH_OWNER
}
@
${
_SERVER
}
"cd
${
VM_CORE_PATH
}
/ && sed -E -i'' '/(WP_HOME|WP_SITEURL)/d'
${
RELATIVE_SETTINGS_SRC
}
/wp-config.php && ~/bin/wp --path=
${
VM_CORE_PATH
}
/
${
RELATIVE_DOCUMENT_ROOT
}
config set WP_HOME '
${
WP_SITE_URL
}
' && ~/bin/wp --path=
${
VM_CORE_PATH
}
/
${
RELATIVE_DOCUMENT_ROOT
}
config set WP_SITEURL '
${
WP_SITE_URL
}
'"
;
fi
;
fi
;
# stop apache, etc
# stop apache, etc
...
...
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