2013.08.19 Monday
スポンサーサイト
一定期間更新がないため広告を表示しています
| - | | - | -
To output app logs, edit config/environments/production.rb
or the environment configuration for your Heroku environment.
In the MyApp::Cofiguration.configure .. end
block, add these 2 lines:
config.logger = Logger.new(STDOUT)
config.logger.level = Logger.const_get(ENV['LOG_LEVEL'] ? ENV['LOG_LEVEL'].upcase : 'INFO')
install_imagemagick.sh
#!/bin/bash
mkdir -p ~/local
command -v identify > /dev/null
if [ $? -eq 1 ]; then
echo "${bldgrn}Installing imagemagick into ${txtwht}$HOME/local/imagemagick${txtrst}"
wget -N --retr-symlinks ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
tar -xzvf ImageMagick.tar.gz
cd ImageMagick-*
./configure --prefix=$HOME/local/imagemagick
make
make install
cd ..
rm -rf ImageMagick-*
fi
Then I add this to my ~/.bashrc or ~/.zshrc
export PATH=$HOME/local/imagemagick/bin:$PATH
export LD_LIBRARY_PATH=$HOME/local/imagemagick/lib:$LD_LIBRARY_PATH