Installation/OpenShift: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
Here is a quick guide to deploy Diaspora* on OpenShift, the cloud solution powered by RedHat | Here is a quick guide to deploy Diaspora* on OpenShift, the cloud solution powered by RedHat | ||
# Create an account (it's free !) | |||
# Choose Ruby on Rails application | |||
# Choose a public URL and change "Source Code" to git://github.com/diaspora/diaspora.git | |||
# Keep a copy of your MySQL settings, you will need it ;) | |||
# Connect to your cloud with ssh : You have a example with git : | |||
git clone ssh://a-lot-of-number-and-letters@yourappli-yournamspace.rhcloud.com/~/git/timmy.git/ | <pre>git clone ssh://a-lot-of-number-and-letters@yourappli-yournamspace.rhcloud.com/~/git/timmy.git/</pre> | ||
Connect by transform this command to | Connect by transform this command to | ||
ssh a-lot-of-number-and-letters@yourappli-yournamspace.rhcloud.com | <pre>ssh a-lot-of-number-and-letters@yourappli-yournamspace.rhcloud.com</pre> | ||
You probably need to set a public key in your account setting first. If you don't have one, generate one with sh-keygen and put it in .ssh in your home | You probably need to set a public key in your account setting first. If you don't have one, generate one with sh-keygen and put it in .ssh in your home | ||
In your cloud, go to the app folder : | In your cloud, go to the app folder : | ||
cd app-root/repo/ | <pre>cd app-root/repo/ | ||
run bundle install : | run bundle install : | ||
bundle install | bundle install</pre> | ||
Edit your diaspora.yaml and database.yaml file : | |||
cd config | <pre>cd config | ||
mv diaspora.yaml.example diaspora.yaml | mv diaspora.yaml.example diaspora.yaml | ||
mv database.yaml.example database.yaml | mv database.yaml.example database.yaml | ||
nano diaspora.yaml | nano diaspora.yaml</pre> | ||
edit the url and remove the # in front of certificate_authorities: '/etc/pki/tls/certs/ca-bundle.crt' and port: 3000 | edit the url and remove the # in front of certificate_authorities: '/etc/pki/tls/certs/ca-bundle.crt' and port: 3000 | ||
nano database.yaml | <pre>nano database.yaml</pre> |
Revision as of 21:24, 22 January 2013
Here is a quick guide to deploy Diaspora* on OpenShift, the cloud solution powered by RedHat
- Create an account (it's free !)
- Choose Ruby on Rails application
- Choose a public URL and change "Source Code" to git://github.com/diaspora/diaspora.git
- Keep a copy of your MySQL settings, you will need it ;)
- Connect to your cloud with ssh : You have a example with git :
git clone ssh://a-lot-of-number-and-letters@yourappli-yournamspace.rhcloud.com/~/git/timmy.git/
Connect by transform this command to
ssh a-lot-of-number-and-letters@yourappli-yournamspace.rhcloud.com
You probably need to set a public key in your account setting first. If you don't have one, generate one with sh-keygen and put it in .ssh in your home
In your cloud, go to the app folder :
cd app-root/repo/ run bundle install : bundle install
Edit your diaspora.yaml and database.yaml file :
cd config mv diaspora.yaml.example diaspora.yaml mv database.yaml.example database.yaml nano diaspora.yaml
edit the url and remove the # in front of certificate_authorities: '/etc/pki/tls/certs/ca-bundle.crt' and port: 3000
nano database.yaml