mydevcommunity/mydev

Move to mydev own Openshift account

k4ml opened this issue · 8 comments

k4ml commented

The website www.mydev.my currently running on openshift gears under my (k4ml) personal account. We should move it to mydev own account. The following need to be done:-

  1. Register new openshift account using mydev email, maybe admin@mydev.my
  2. Setup the environment on new account.

I've setup the email. "admin@mydev.my" is now live and working. k4ml, hope you can create the new account. I'll send the details thru email.

k4ml commented

After sign up and logged in to openshift web console:-

  1. Create new DIY application.
  2. Set public url as site-mydevcommunity.rhcloud.com
  3. Point source code as https://github.com/mydevcommunity/mydev.git
  4. Create application
k4ml commented

The above step unfortunately didn't work. We have to start with the default source and then change it to our own. After sign up and logged in to openshift web console:-

  1. Create new DIY application.
  2. Set public url as site-mydevcommunity.rhcloud.com
  3. Create application

Checkout the source code, and merge the default DIY source with mydev source:-

git remote add upstream -m master git://github.com/mydevcommunity/mydev.git
git pull -s recursive -X theirs upstream master
git push origin master
k4ml commented

Jenkins setup:-

  1. Attach Jenkins server through web console.
  2. Create new user and setup security - https://wiki.jenkins-ci.org/display/JENKINS/Standard+Security+Setup
  3. Configure remote build - https://jenkins-mydevcommunity.rhcloud.com/job/site-build/configure
    1. Trigger builds remotely (e.g., from scripts) - Set Authentication Token
    2. Set URL of repository
    3. Shell command can be leaved as is
k4ml commented

The new site is ready now. @ikhwanhayat you can update CNAME for www.mydev.my to site-mydevcommunity.rhcloud.com.

@k4ml I've setup the DNS stuff. But right now when I go to www.mydev.my it redirects to www.mydev.my/app.

Is it the "alias" thing in OpenShift. I tried setting the alias in web console, but it says the alias has been registered. Using the "rhc" client tools yield similiar result.

k4ml commented

Fixed. www.mydev.my still registered as alias for the old site. Some notes on setting the alias:-

rhc alias remove mydev www.mydev.my -l old_account
rhc alias add site www.mydev.my -l new_account

Assuming on old_account, the app name was mydev and on new_account, the app name is site.

Excellent work!