Documentation


Choose language version

Use the Gemfile to control which version of Ruby is run. For instance: to ensure that your scraper is run with Ruby 1.9.3, add this to your Gemfile:

ruby '1.9.3'

For the full list of support ruby versions see the Heroku documentation for its Ruby support.

To set the version of PHP you want to use and to install PHP extensions and libraries create composer.json in your scraper repository.

For instance, to use PHP 5.5.12 your composer.json could look like this

{
  "require": {
    "php": "5.5.12"
  }
}

There are currently a limited number of PHP versions that are supported. See the list at Heroku PHP support.

You can specify the Python version to run by adding a runtime.txt file.

For example, for Python 2.7.6 put this in runtime.txt

python-2.7.6

Missing documentation. Help out by writing some.

To set the version of Node.js you want to use and to install packages from npm, edit the package.json file in the root of your scraper repository.

For instance, to use Node.js 4.1.1, your package.json could look like this:

{
  "name": "myscraper",
  "description": "a scraper that runs on morph.io",
  "version": "1.0.0",
  "engines": {
    "node": "4.1.1"
  }
}

There are a limited number of Node.js versions that are supported. See the list at Heroku Node.js support.