|
|
(18 intermediate revisions by 2 users not shown) |
Line 1: |
Line 1: |
| Here is a quick guide to deploy Diaspora* on OpenShift, the cloud solution powered by RedHat
| | {{UnsupportedEnvironment}} |
| | {{Note|OpenShift support is still work in progress and not official, see the [https://github.com/MrZYX/diaspora-openshift/issues open issues]}} |
|
| |
|
| # Create an account (it's free !)
| | Go to https://github.com/jhass/diaspora-openshift and follow the readme there. |
| # 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 :
| |
| <pre>git clone ssh://a-lot-of-number-and-letters@yourappli-yournamspace.rhcloud.com/~/git/timmy.git/</pre>
| |
| Connect by transform this command to
| |
| <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
| | [[Category:Installation]] |
| | | [[Category:Podmin]] |
| In your cloud, go to the app folder :
| |
| <pre>cd app-root/repo/
| |
| run bundle install :
| |
| bundle install</pre>
| |
| | |
| Edit your diaspora.yaml and database.yaml file :
| |
| <pre>cd config
| |
| mv diaspora.yaml.example diaspora.yaml
| |
| mv database.yaml.example database.yaml
| |
| nano diaspora.yaml</pre>
| |
| edit the url and remove the # in front of <pre>certificate_authorities: '/etc/pki/tls/certs/ca-bundle.crt'</pre> and <pre>port: 3000</pre>
| |
| <pre>nano database.yaml</pre>
| |