GitHub - Fedia/staticshift: Static website hosting for OpenShift Online

1 min read Original article ↗

Staticshift

Host your static website on OpenShift Online with WebDAV.

Installation

(1) Get an account at OpenShift Online (it's free)

(2) Create a new application based on Node.js cartridge and Git URL: https://github.com/Fedia/staticshift

New app form screenshot

(3) Done! The website will be avaliable at appname-your_namespace.rhcloud.com.

Please note your OpenShift application ID - 24 random characters, e.g. 563a8a152d5271d4490000bb. You will need it later to manage your website.

App ID screenshot

Managing files

Staticshift is a WebDAV server, so your website can be mounted as a "network drive" in Windows Explorer or OSX Finder. Further reading: https://doc.owncloud.org/server/7.0/user_manual/files/files.html

Server URL: https://appname-your_namespace.rhcloud.com

Username: any

Password: OpenShift application ID, e.g. 563a8a152d5271d4490000bb

Please upload /404.html to make "Page Not Found" error more friendly.

Custom domain

OpenShift allows to use your own domain instead of appname-namespace.rhcloud.com. Please see the docs: https://developers.openshift.com/en/managing-domains-ssl.html#using-a-custom-domain