Skip to content

Commit ebd11ce

Browse files
author
matt swanson
committed
Merge pull request stringer-rss#296 from jasonngpt/updateOpenShiftdocs
Modified Ruby Version in Step 9, and added Step 10 to remove 'pry-byebug' gem which depends on Ruby 2.0
2 parents 1b0a829 + d20e2e6 commit ebd11ce

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

docs/OpenShift.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,21 +56,27 @@ Deploying into OpenShift
5656
password: <%= ENV["OPENSHIFT_POSTGRESQL_DB_PASSWORD"] %>
5757
```
5858

59-
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)
59+
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))
6060

6161
```
62-
ruby '1.9.3'
62+
ruby '2.0.0'
6363
```
6464

65-
9. Finally, once completed, all changes should be committed and pushed to OpenShift. Note that it might take a while when pushing to OpenShift.
65+
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) )
66+
67+
```
68+
gem "pry-byebug", "~> 1.2"
69+
```
70+
71+
10. Finally, once completed, all changes should be committed and pushed to OpenShift. Note that it might take a while when pushing to OpenShift.
6672

6773
```sh
6874
git add .
6975
git commit -m "Deployment of Stringer"
7076
git push origin
7177
```
7278

73-
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!
79+
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!
7480

7581

7682
Adding Cronjob to Fetch Feeds

0 commit comments

Comments
 (0)