One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| #!/usr/bin/env bash | |
| # | |
| # Rails console script that can be run on AWS Elastic Beanstalk. | |
| # | |
| # Run this script from the app dir (/var/app/current) as root (sudo script/aws-console) | |
| # | |
| set -xe | |
| EB_SCRIPT_DIR=$(/opt/elasticbeanstalk/bin/get-config container -k script_dir) |
| # Compile source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Packages # |
| #!/usr/bin/env ruby | |
| # Heroku enviroment helper script | |
| # | |
| # This is to streamline using differnt heroku enviroments from one repo. | |
| # Symlink this file to an envroment name (as set by the git-remote name), then | |
| # when running that symlink the script will look up the name in the git config | |
| # and use that remote as the heroku name. | |
| # | |
| # Setup: |
| require 'fakeweb' | |
| require 'fake_resource' | |
| ActiveResource::Base.send :include, ActiveResource::FakeResource | |
| Before do | |
| FakeWeb.allow_net_connect = false | |
| end | |
| After do |scenario| | |
| ActiveResource::FakeResource.clean |
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Packages # |
| function tocLink(heading, title, href) { | |
| var ele = '<li class="tooltipped tooltipped-w" aria-label="'+title+'">'+ | |
| '<a href="'+href+'" aria-label="'+title+'"'+ | |
| 'class="js-selected-navigation-item sunken-menu-item">'+ | |
| '<span class="full-word">'+title+'</span></a></li>' | |
| return ele; | |
| } | |
| var header = "<li class='tooltipped tooltipped-w'><strong> Table of Contents</strong></li>" | |
| var rows = []; |
| # config/initializers/clear_logs.rb | |
| if Rails.env.development? | |
| MAX_LOG_SIZE = 2.megabytes | |
| logs = File.join(Rails.root, 'log', '*.log') | |
| if Dir[logs].any? {|log| File.size?(log).to_i > MAX_LOG_SIZE } | |
| $stdout.puts "Runing rake log:clear" | |
| `rake log:clear` | |
| end | |
| end |
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Packages # |