Created
March 2, 2012 17:16
-
-
Save weotch/1959748 to your computer and use it in GitHub Desktop.
Running PHP scripts from CLI on Heroku
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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