Move to mydev own Openshift account
k4ml opened this issue · 8 comments
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:-
- Register new openshift account using mydev email, maybe admin@mydev.my
- 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.
After sign up and logged in to openshift web console:-
- Create new DIY application.
- Set public url as site-mydevcommunity.rhcloud.com
- Point source code as https://github.com/mydevcommunity/mydev.git
- Create application
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:-
- Create new DIY application.
- Set public url as site-mydevcommunity.rhcloud.com
- 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
Jenkins setup:-
- Attach Jenkins server through web console.
- Create new user and setup security - https://wiki.jenkins-ci.org/display/JENKINS/Standard+Security+Setup
- Configure remote build - https://jenkins-mydevcommunity.rhcloud.com/job/site-build/configure
- Trigger builds remotely (e.g., from scripts) - Set Authentication Token
- Set URL of repository
- Shell command can be leaved as is
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.
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!