{"id":20329059,"url":"https://github.com/affix/openshift-quickstart-rails4-mongoid","last_synced_at":"2026-03-09T00:34:22.612Z","repository":{"id":14182954,"uuid":"16889193","full_name":"affix/openshift-quickstart-rails4-mongoid","owner":"affix","description":"Rails 4 Quickstart with Mongoid Support","archived":false,"fork":false,"pushed_at":"2014-03-08T00:10:53.000Z","size":144,"stargazers_count":5,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T20:45:42.967Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/affix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-16T16:59:19.000Z","updated_at":"2019-08-13T15:35:42.000Z","dependencies_parsed_at":"2022-07-06T22:01:21.509Z","dependency_job_id":null,"html_url":"https://github.com/affix/openshift-quickstart-rails4-mongoid","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/affix/openshift-quickstart-rails4-mongoid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/affix%2Fopenshift-quickstart-rails4-mongoid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/affix%2Fopenshift-quickstart-rails4-mongoid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/affix%2Fopenshift-quickstart-rails4-mongoid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/affix%2Fopenshift-quickstart-rails4-mongoid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/affix","download_url":"https://codeload.github.com/affix/openshift-quickstart-rails4-mongoid/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/affix%2Fopenshift-quickstart-rails4-mongoid/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30278562,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T20:45:49.896Z","status":"ssl_error","status_checked_at":"2026-03-08T20:45:49.525Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T20:09:13.622Z","updated_at":"2026-03-09T00:34:22.594Z","avatar_url":"https://github.com/affix.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rails/MongoId Sample App on OpenShift #\nQuickstart rails application for openshift.\n\nThe easiest way to install this application is to use the [OpenShift\nInstant Application][template]. If you'd like to install it\nmanually, follow [these directions](#manual-installation).\n\n## OpenShift Considerations ##\nThese are some special considerations you may need to keep in mind when\nrunning your application on OpenShift.\n\n### Database ###\nYour application is configured to use your OpenShift database in\nProduction mode.\nBecause it addresses these databases based on [OpenShift Environment\nVariables](http://red.ht/NvNoXC), you will need to change these if you\nwant to use your application in Production mode outside of\nOpenShift.\n\n### Assets ###\nYour application is set to precompile the assets every time you push\nto OpenShift. Any assets you commit to your repo will be preserved\nalongside those which are generated during the build.\n\nBy adding `disable_asset_compilation` marker, you will disable asset compilation upon application deployment.\n\n### Security ###\nSince these quickstarts are shared code, we had to take special\nconsideration to ensure that security related configuration variables\nwas unique across applications.\nTo accomplish this, we modified some of the configuration files (shown\nin the table below).\nNow instead of using the same default values, your application will\ngenerate it's own value using the `initialize_secret` function from `lib/openshift_secret_generator.rb`.\n\nThis function uses a secure environment variable that only exists on\nyour deployed application and not in your code anywhere.\nYou can then use the function to generate any variables you need.\nEach of them will be unique so `initialize_secret(:a)` will differ\nfrom `initialize_secret(:b)` but they will also be consistent, so any\ntime your application uses them (even across reboots), you know they\nwill be the same.\n\n### Development mode ###\nWhen you develop your Rails application in OpenShift, you can also enable the\n'development' environment by setting the `RAILS_ENV` environment variable,\nusing the `rhc` client, like:\n\n```\n$ rhc env set RAILS_ENV=development\n```\n\nIf you do so, OpenShift will run your application under 'development' mode.\nIn development mode, your application will:\n\n* Show more detailed errors in browser\n* Skip static assets (re)compilation\n* Skip web server restart, as the code is reloaded automatically\n* Skip `bundle` command if the Gemfile is not modified\n\nDevelopment environment can help you debug problems in your application\nin the same way as you do when developing on your local machine.\nHowever, we strong advise you to not run your application in this mode\nin production.\n\n## Manual Installation ##\n\n1. Create an account at http://openshift.redhat.com/\n\n1. Create a rails application\n\n    ```\n    rhc app create -a railsapp -t ruby-1.9 mongodb-2.2\n    ```\n\n1. Add this upstream Rails quickstart repository\n\n    ```\n    cd railsapp\n    git remote add upstream -m master git://github.com/Affix/openshift-quickstart-rails4-mongoid.git\n    git pull -s recursive -X theirs upstream master\n    ```\n\n1. Push your new code\n\n    ```\n    git push\n    ```\n\n1. That's it! Enjoy your new Rails application!\n\n\nLicense\n-------\n\nThis code is dedicated to the public domain to the maximum extent permitted by applicable law, pursuant to CC0 (http://creativecommons.org/publicdomain/zero/1.0/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faffix%2Fopenshift-quickstart-rails4-mongoid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faffix%2Fopenshift-quickstart-rails4-mongoid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faffix%2Fopenshift-quickstart-rails4-mongoid/lists"}