Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions docs/OpenShift.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,21 +56,27 @@ Deploying into OpenShift
password: <%= ENV["OPENSHIFT_POSTGRESQL_DB_PASSWORD"] %>
```

8. Due to an older version of bundler being used in OpenShift (1.1.4), it does not support indicating the ruby version in the Gemfile. Remove the line from the Gemfile below. (Referencing issue #266)
8. Due to an older version of bundler being used in OpenShift (1.1.4), it does not support indicating the ruby version in the Gemfile. Remove the line from the Gemfile below. (Referencing issue [#266](https://github.com/swanson/stringer/issues/266))

```
ruby '1.9.3'
ruby '2.0.0'
```

9. Finally, once completed, all changes should be committed and pushed to OpenShift. Note that it might take a while when pushing to OpenShift.
9. As OpenShift is still using Ruby 1.9.3 and the [gem 'pry-byebug'](https://github.com/deivid-rodriguez/pry-byebug) needs Ruby 2.0, we can try to just install the production environment from the Gemfile but there seems to be a [bug in OpenShift](https://bugzilla.redhat.com/show_bug.cgi?id=1049411). A temporary work-around is to remove the 'pry-byebug' gem in the Gemfile. Note that this is only for deploying into OpenShift production. (Referencing issue [#294](https://github.com/swanson/stringer/pull/294) )

```
gem "pry-byebug", "~> 1.2"
```

10. Finally, once completed, all changes should be committed and pushed to OpenShift. Note that it might take a while when pushing to OpenShift.

```sh
git add .
git commit -m "Deployment of Stringer"
git push origin
```

10. Check that you are able to access the website at the URL given, i.e. feeds-username.rhcloud.com. Then set your password, import your feeds and all good to go!
11. Check that you are able to access the website at the URL given, i.e. feeds-username.rhcloud.com. Then set your password, import your feeds and all good to go!


Adding Cronjob to Fetch Feeds
Expand Down