-
Notifications
You must be signed in to change notification settings - Fork 0
check a web's status
wayne-t/webstatus_check
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This project is to: 1. Create a webpage to let user check whether a webpage is up or not. 2. Deploy '1' on a web host Notes: The deployment I did on OpenShift last weekend was straightforward: git client on my PC, commit and push to the webhost's folder(which is the git server folder as well), then deployment is done. What I wanted was a bit more advanced: when I commit and push to github(not OpenShift), the hook I set on github will trigger deploy.php located on webhost(such as OpenShift) already. That php will then pull from Github to that webpage to complete an "auto deploy". Only this way, a "deply script" is used and the webhost doesn't have to be a git server. Unfortunately, free webhost doesn't support mechanism for this kind of setup(needs to install git and clone to the server side first). But I am able to run that deploy.php on my local webhost and pull from github automatically. It means, for a deployment that is using web hosting supporting the setup, my deployment script will work fine! I will demo it. Reference: (that really used, no just searched, which is way more) 1. http://httpd.apache.org/download.cgi (download apache for local host) 2. http://www.thesitewizard.com/php/install-php-5-apache-windows.shtml (compatibility Apache Version & PHP version) 3. http://windows.php.net/downloads/releases/ (download right PHP for local host) 4. https://help.github.com/articles/set-up-git (set up github) 5. http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html (return code of web status) 6. http://css-tricks.com/snippets/php/check-if-website-is-available/ (sample code) 7. http://code.google.com/p/xampp-php-extensions/downloads/detail?name=php_curl.dll&can=2&q= (php_curl.dll download) 8. https://help.github.com/articles/generating-ssh-keys (ssh connection for github) 9. http://pierrchen.blogspot.com/2011/09/working-same-github-repository-from-two.html (2 computers, 1 repository for github) 10.http://stackoverflow.com/questions/18676856/display-php-post-results-after-a-form-submit-then-reload-same-blank-form-when-p (display result using same index.php file) 11.http://w3schools.invisionzone.com/index.php?showtopic=25145 (inspired to display on the same search page) 12.https://www.openshift.com/ (openshift registration) 13.https://www.openshift.com/kb/kb-e1006-sync-new-git-repo-with-your-own-existing-git-repo (as subject) 14.http://webdeploy.comli.com/ (another free hosting) 15.https://www.openshift.com/kb/kb-e1015-how-to-resolve-permission-denied-errors-permission-denied-publickeygssapi-keyexgssapi-wi (for openshift, had to add ssh keys to git prog directory) 16.https://openshift.redhat.com/app/console/application/test/get_started?wizard=true (test application) 17.http://webstatuscheck-webdeploy.rhcloud.com/ (final deployed application) 18.http://brandonsummers.name/blog/2012/02/10/using-bitbucket-for-automated-deployments/ (deploy php triggered by git host such as bitbucket and github) 19.https://github.com/mboynes/github-deploy (another reference to deploy) 20.http://stackoverflow.com/questions/651038/how-do-you-clone-a-git-repository-into-a-specific-folder (how to clone git repository to a folder with different name then repository name in git) 21.https://github.com/web-deploy/webstatus_check (source code)
About
check a web's status
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published