Skip to content

Instantly share code, notes, and snippets.

@Potherca
Forked from weotch/gist:1959748
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Potherca/9041249 to your computer and use it in GitHub Desktop.
Save Potherca/9041249 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