Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
5ffa69e4
Commit
5ffa69e4
authored
Jun 09, 2021
by
Albert Salim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wait for Rails to be ready
parent
94271657
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
scripts/review_apps/review-apps.sh
scripts/review_apps/review-apps.sh
+1
-3
scripts/utils.sh
scripts/utils.sh
+12
-0
No files found.
scripts/review_apps/review-apps.sh
View file @
5ffa69e4
...
...
@@ -368,9 +368,7 @@ EOF
function
verify_deploy
()
{
echoinfo
"Verifying deployment at
${
CI_ENVIRONMENT_URL
}
"
local
status
=
$(
curl
-sL
-w
"%{http_code}
\\
n"
"
${
CI_ENVIRONMENT_URL
}
"
-o
curl_output.txt
)
if
[[
$status
==
'200'
]]
;
then
if
wait_for_url
"
${
CI_ENVIRONMENT_URL
}
"
curl_output.txt
;
then
echoinfo
"Review app is deployed to
${
CI_ENVIRONMENT_URL
}
"
return
0
else
...
...
scripts/utils.sh
View file @
5ffa69e4
...
...
@@ -13,6 +13,18 @@ function retry() {
return
1
}
function
wait_for_url
()
{
local
url
=
"
${
1
}
"
local
curl_output
=
"
${
2
}
"
echo
"Waiting for
${
url
}
"
timeout
-s
1 60 bash
-c
\
'while [[ "$(curl -s -o ${1} -L -w ''%{http_code}'' ${0})" != "200" ]]; \
do echo "." && sleep 5; \
done'
${
url
}
${
curl_output
}
}
function
bundle_install_script
()
{
local
extra_install_args
=
"
${
1
}
"
...
...
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