This file contains hidden or 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 sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
This file contains hidden or 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
| project :test => :rspec, :orm => :activerecord, :adapter => :postgres, :mock => :none, :script => :jquery, :renderer => :erb, :stylesheet => :none, :admin_renderer => :erb | |
| # include additional generators | |
| inject_into_file destination_root('config/boot.rb'), "\# include additional generators\nPadrino::Generators.load_paths << Padrino.root('generators', 'kyan_admin_page_generator.rb')\nPadrino::Generators.load_paths << Padrino.root('generators', 'kyan_admin_generator.rb')\n\n", :before => "Padrino.load!" | |
| say "Cloning custom generators from git@github.com:xavierRiley/Kyan-Padrino-Admin-Generators.git", :red | |
| remove_dir destination_root('generators') | |
| run "git clone git@github.com:xavierRiley/Kyan-Padrino-Admin-Generators.git " + destination_root('generators') | |
| #generate :model, "account username:string password:string" |
This file contains hidden or 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
| connection.directories.first.files.each {|file| if file.key.match(/jpg$/) | |
| file.content_type = "image/jpg"; | |
| file.acl="public-read" | |
| file.save | |
| puts file.key | |
| }; nil | |
| } |
This file contains hidden or 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
| <VirtualHost *:80> | |
| ServerName SITE_URL | |
| ServerAlias SITE_IP *.SITE_URL | |
| DocumentRoot /var/www/SITE_URL/PUBLIC_FOLDER | |
| <Directory /> | |
| Options FollowSymLinks | |
| AllowOverride None | |
| </Directory> |
This file contains hidden or 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
| http://brandontilley.com/2011/01/29/serving-rails-apps-with-rvm-nginx-unicorn-and-upstart.html | |
| but ... | |
| Rvm commands have changed slightly. Create a normal user first then; | |
| http://beginrescueend.com/rvm/install/ | |
| Follow multi user install |
NewerOlder