본문 바로가기
Tool/openshift

openshift / idle방지 / ping

by 하하IT 2020. 4. 20.

[cht.rhcloud.com hourly]\>

[cht.rhcloud.com hourly]\> pwd

cd ~/app-root/runtime/repo/.openshift/cron/minutely/hourly

[cht.rhcloud.com hourly]\> cat ping.sh

#!/bin/bash

 

PATH=/bin:/usr/bin:/usr/sbin

app_url=http://$OPENSHIFT_APP_DNS/

 

curl --insecure --location --silent --fail "$app_url" >/dev/null

[cht.rhcloud.com hourly]\>

'Tool > openshift' 카테고리의 다른 글

openshift / wordpress / domain  (0) 2020.04.20
Deploy war application on OpenShift  (0) 2020.04.20
openshift / rhc error  (0) 2020.04.20
openshift / owncloud  (0) 2020.04.20
openshift / ERROR: Could not find a valid gem 'rhc' (>= 0)  (0) 2020.04.19