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
RUN \ | |
curl -sfLO http://www.imagemagick.org/download/ImageMagick-6.9.0-4.tar.gz && \ | |
echo 'cf51a1c6ebf627c627a8e6ac20aecce5f1425907c2cdb98c5a60f329c5c6caf2 ImageMagick-6.9.0-4.tar.gz' | sha256sum -c - && \ | |
tar -xzf ImageMagick-6.9.0-4.tar.gz && \ | |
cd ImageMagick-6.9.0-4 && \ | |
./configure --prefix /usr/local && \ | |
make install && \ | |
cd .. && \ | |
rm -rf ImageMagick* |
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
#!/usr/bin/env python | |
import sys | |
import re | |
import os.path | |
import codecs | |
import os | |
encoding = 'cp932' |
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
## Restart a Heroku Web Application | |
## Adapted from a script by mscottford for restarting workers: https://gist.github.com/2028552 | |
## Instructions: | |
## * Save this script in lib/tasks | |
## * Gemfile: gem 'heroku-api', :git => 'https://github.com/heroku/heroku.rb.git' | |
## * Commit Gemfile* and lib/tasks | |
## * $ heroku config:add APP_NAME='name of the Heroku app' | |
## * $ heroku config:add HEROKU_API_KEY='the API key found on the Heroku "My Account" page' | |
## * Deploy and test with $ heroku run rake heroku:webs:restart[10] (Look at process uptime with $ heroku ps) |