-
-
Notifications
You must be signed in to change notification settings - Fork 436
OpenShift Tutorial (Windows)
NOTE: this tutorial hasn't been updated in years and is outdated. It is left here for historical reasons, and to keep around the Putty and FileZilla guides, which are generally useful.
This tutorial let you setup a free website at OpenShift using Windows. The tutorial consists of three major parts:
- Generating of your private and public keys, which is like your password for OpenShift.
- Creating an OpenShift account and registering an app.
- Connecting to your website so you can upload files.
First, download and/or install:
In the following steps, you will generate a "public/private key pair." You give websites your public key but you keep your private key secret. Your private key is like your password.
-
Open PuTTYgen.
-
Click Generate.
-
Move your mouse around until it finishes.
-
Save your private key
-
Don't save the file with a password.
-
Save the private key file somewhere safe.
-
In the main window is your public key. Copy and save it somewhere.
At this point, you should have:
- A private key file
- A public key (copy and pasted)
-
Go to OpenShift and register an account.
-
Create a new PHP 5.4 app.
-
Choose any URL that you want for your website. Leave the source code fields blank.
-
Wait as OpenShift creates your application/website.
-
When it's done, you will be asked whether you will be changing the code of your application. Click "Yes" and the paste in your public key that you created earlier.
-
You should be then given a URL that looks like
ssh://USERNAME@HOSTNAME/~/git/etc
. Make note of your username and the hostname because you will need them later.
At this point, you should have:
- A private key file
- A public key (copy and pasted)
- Your hostname (SOMETHING_HERE.rhcloud.com)
- Your username (a bunch of numbers and letters like 6d6354ece40846bf7fca65dfabd5d9d4)
-
Open FileZilla.
-
Open the Site Manager from the File menu.
-
Create a new site. Enter the hostname, change the protocol to SFTP, change the logon type to Key file, enter your username, select your private key file from earlier, and then click "Connect."
-
At this point, you should be connected to your website's files. Only files in a certain folder can be accessed by a web browser though, so browse to the app-root/runtime/repo folder on the right.
-
Drag files into the (lower) right pane to upload your files. You can also delete the existing files if you want. If you haven't created a modpack, just can upload some test image file for now. If you already generated a modpack with the tools, then you need to upload the contents of your
_upload
folder (but don't upload the_upload
folder itself!).
Use the hostname that you recorded earlier and visit it. For example, if your hostname was http://SOMETHING_HERE.rhcloud.com
, you would try http://SOMETHING_HERE.rhcloud.com/SOME_FILE
.
If you uploaded a generated modpack, then you probably want http://SOMETHING_HERE.rhcloud.com/packages.php
.
The main downside with OpenShift if you're not paying is that it will temporarily "pause" your website if no one visits it in 24 hours. Once your website is paused, the first time someone visits it again, it may take a few seconds before your website starts working.
If at least one person plays your modpack every day, then this will not be a problem.
Some people work around pausing by using a free "ping" service that periodically pings/visits their OpenShift website, but obviously this is on you.
As of writing, OpenShift is about $15/month for the lowest tier, which is not exorbitant but not particularly cheap. See the Website Hosting page for other options, free or paid.
Need help? See Getting Help.
Tutorial
Launcher Features:
- Fancy Launcher
- Portable Mode
- Hidden Modpacks
- Deploying Server Modpacks
- Launcher Arguments
- Custom JAR (.jar mods)
- Custom Version Manifest
Customization:
- Localization
- News Page Guide
- Custom Microsoft OAuth application
- Using an IDE (Eclipse, IntelliJ)
Additional Reading:
Find the launcher useful?
Donate to obw, the current maintainer:
Donate to sk89q, the original maintainer: