Skip to content

Instantly share code, notes, and snippets.

@weotch
Created March 2, 2012 17:16
Show Gist options
  • Save weotch/1959748 to your computer and use it in GitHub Desktop.
Save weotch/1959748 to your computer and use it in GitHub Desktop.
Running PHP scripts from CLI on Heroku
# Add this config
$ heroku config:add LD_LIBRARY_PATH=/app/php/ext:/app/apache/lib
# Login to Heroku CLI
$ heroku run bash
# The second argument here is the path to your script
~ $ ~/php/bin/php -f ~/www/index.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment