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
.git | |
.gitignore | |
/doc | |
.yardoc | |
coverage | |
jsdoc | |
/tmp | |
/log | |
Dockerfile | |
Dockerfile.prod |
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
version :thumb do | |
def full_filename(for_file) | |
super(for_file).chomp(File.extname(super(for_file))) + '.jpg' | |
end | |
def convert_thumb_to_jpg | |
manipulate! do |image| | |
image.auto_orient | |
image.format 'jpg' | |
landscape = "75x56" |
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
# encoding: utf-8 | |
class VehicleUploader < CarrierWave::Uploader::Base | |
# include CarrierWave::RMagick | |
include CarrierWave::MiniMagick | |
version :to_png do | |
process :convert_to_single_png | |
def convert_to_single_png |
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
rake deploy:staging | |
============================================================ | |
>> Updating Repo Tag: staging | |
============================================================ | |
Everything up-to-date | |
============================================================ | |
>> Pushing refs/tags/staging to 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
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. | |
/Users/loganrice/.rbenv/versions/2.0.0-p353/bin/ruby extconf.rb | |
checking for pg_config... no | |
No pg_config... trying anyway. If building fails, please try again with | |
--with-pg-config=/path/to/pg_config | |
checking for libpq-fe.h... no | |
Can't find the 'libpq-fe.h header | |
*** extconf.rb failed *** | |
Could not create Makefile due to some reason, probably lack of necessary |