Skip to content

Instantly share code, notes, and snippets.

@Potherca Potherca/gist:9041249 forked from weotch/gist:1959748
Last active Aug 29, 2015

Embed
What would you like to do?
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
You can’t perform that action at this time.