heroku-rails | easy configuration / multi-environment setup | Platform As A Service library

 by   jacquescrocker Ruby Version: Current License: Non-SPDX

kandi X-RAY | heroku-rails Summary

kandi X-RAY | heroku-rails Summary

heroku-rails is a Ruby library typically used in Cloud, Platform As A Service applications. heroku-rails has no bugs, it has no vulnerabilities and it has low support. However heroku-rails has a Non-SPDX License. You can download it from GitHub.

Easier configuration and deployment of Rails apps on Heroku. Configure your Heroku environment via a YML file (config/heroku.yml) that defines all your environments, addons, and environment variables. Heroku Rails also handles asset packaging (via jammit), deployment of assets to s3 (via jammit-s3).
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              heroku-rails has a low active ecosystem.
              It has 116 star(s) with 27 fork(s). There are 2 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 1 open issues and 6 have been closed. On average issues are closed in 127 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of heroku-rails is current.

            kandi-Quality Quality

              heroku-rails has 0 bugs and 0 code smells.

            kandi-Security Security

              heroku-rails has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              heroku-rails code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              heroku-rails has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              heroku-rails releases are not available. You will need to build from source code and install.
              Installation instructions, examples and code snippets are available.
              heroku-rails saves you 221 person hours of effort in developing the same functionality from scratch.
              It has 541 lines of code, 34 functions and 10 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed heroku-rails and discovered the below as its top functions. This is intended to give you an instant insight into heroku-rails implemented functionality, and help decide if they suit your requirements.
            • Sets up the apps for all available apps .
            • This method is called after the project .
            • Update the config files
            • Runs the project .
            • Creates a new application for all apps .
            • Migrates all apps for the application .
            • Creates a new App instance
            • Clear all commands .
            • Returns an array of all the settings from the app
            • Override config to set environment variables
            Get all kandi verified functions for this library.

            heroku-rails Key Features

            No Key Features are available at this moment for heroku-rails.

            heroku-rails Examples and Code Snippets

            No Code Snippets are available at this moment for heroku-rails.

            Community Discussions

            QUESTION

            Heroku: unable to connect to chromedriver 127.0.0.1:9515 when using Watir/Selenium
            Asked 2020-Mar-02 at 13:25

            This runs locally (without specifying driver_path), but not on Heroku.

            Code:

            ...

            ANSWER

            Answered 2017-Nov-19 at 18:01

            I am quoting Ilya Vassilevsky from this post

            ChromeDriver is just a driver for Chrome. It needs the actual Chrome browser installed on the same machine to actually work.

            Heroku doesn't have Chrome installed on its dynos by default. You need to use a buildpack that installs Chrome. For example:

            https://github.com/dwayhs/heroku-buildpack-chrome

            You can see how it fetches Chrome:

            https://github.com/dwayhs/heroku-buildpack-chrome/blob/master/bin/compile#L36-38

            Then I read their discussion in the comments:

            Petr Gazarov says

            I tried this buildpack and it didn't work. I'm suspecting installing google chrome (or any browser) on heroku might be more involved.

            Ilya Vassilevsky replies

            Yes, Heroku is a very opinionated and closed platform. It should be much easier to set up Chrome with ChromeDriver on your own VM on AWS, Linode, or DigitalOcean.

            Petr Gazarov replies

            Thanks for your answer Ilya. I ended up re-writing with Watir with phantomjs because I couldn't get Heroku to install Chrome.

            You can read more info in that question. If something comes to my mind, I will post it.

            Source https://stackoverflow.com/questions/47318564

            QUESTION

            Heroku build error: Specified 'sqlite3' for database adapter, but the gem is not loaded
            Asked 2018-Sep-03 at 20:14
            What I'm trying to do

            I'm building an app with rails and deploying a non master branch to heroku master test the app in production. I didn't want to mess with master until I know what I'm doing on Heroku, therefore I deployed a feature branch.

            The repository of the app can be found here if the refernce is needed.

            After any change to the gemfile I ran:

            ...

            ANSWER

            Answered 2018-Sep-03 at 20:14

            SQLite does not work with Heroku as its disk based and Heroku uses an ephemeral file system.

            SQLite runs in memory, and backs up its data store in files on disk. While this strategy works well for development, Heroku’s Cedar stack has an ephemeral filesystem. You can write to it, and you can read from it, but the contents will be cleared periodically. If you were to use SQLite on Heroku, you would lose your entire database at least once every 24 hours.

            Even if Heroku’s disks were persistent running SQLite would still not be a good fit. Since SQLite does not run as a service, each dyno would run a separate running copy. Each of these copies need their own disk backed store. This would mean that each dyno powering your app would have a different set of data since the disks are not synchronized.

            -Heroku Devcenter: SQLite on Heroku

            Heroku provides Postgres as the free default database for rails which is as close to a recommendation as you can get.

            If you are deploying to Postgres you should also be developing/testing on Postgres.

            Differences between backing services mean that tiny incompatibilities crop up, causing code that worked and passed tests in development or staging to fail in production. These types of errors create friction that disincentivizes continuous deployment. The cost of this friction and the subsequent dampening of continuous deployment is extremely high when considered in aggregate over the lifetime of an application.
            - https://12factor.net/dev-prod-parity

            If you really want to stick with SQLite you need to configure the adapters properly:

            Source https://stackoverflow.com/questions/52147960

            QUESTION

            Random ActiveRecord::StatementInvalid errors on Rails 4 app on Heroku
            Asked 2017-Jan-01 at 17:42

            My Rails 4 app works fine locally, and also when it's deployed to Heroku in production mode... until I access the app from a second client... then after a few clicks I start getting the following strange sequence of errors (see below).

            The exact number of clicks varies a little but it always happens eventually... and but only after a request from a second client. For example, if I restart the app and only play with it on my phone nothing happens. But as soon as I load a couple pages from my laptop... crash

            Errors

            NOTE: These screenshots are with RAILS_ENV=development so that the actual errors appear.

            I'm not sure if I'm understanding these errors correctly, but it looks like ? is not getting properly substituted in the query.

            Environment details
            • Rails 4.2
            • hosted on Heroku
            • Ruby 2.2.x
            • MySQL (via ClearDB add-on)

            My Gemfile:

            ...

            ANSWER

            Answered 2017-Jan-01 at 17:42

            I took a second crack at deploying with the mysql2 gem, and this time it worked. The secret sauce comes from this question

            TLDR; You need to specify and older version of mysql2 in order to be compatible with newer versions of Rails. Yea it's weird.

            Source https://stackoverflow.com/questions/41412851

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install heroku-rails

            To set heroku up (using your heroku.yml), just run. This will create the heroku apps you have defined, and create the settings for each. Run rake heroku:setup every time you edit the heroku.yml. It will only make incremental changes (based on what you’ve added/removed). If nothing has changed in the heroku.yml since the last heroku:setup, then no heroku changes will be sent.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/jacquescrocker/heroku-rails.git

          • CLI

            gh repo clone jacquescrocker/heroku-rails

          • sshUrl

            git@github.com:jacquescrocker/heroku-rails.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Platform As A Service Libraries

            asset_sync

            by AssetSync

            fbone

            by imwilsonxu

            piku

            by piku

            herokuish

            by gliderlabs

            heroku-accounts

            by ddollar

            Try Top Libraries by jacquescrocker

            jammit-s3

            by jacquescrockerRuby

            aarrr

            by jacquescrockerRuby

            guard-resque

            by jacquescrockerRuby

            railsgen

            by jacquescrockerRuby

            jammit-sinatra

            by jacquescrockerRuby