gem install rails --pre
rails new my_app -T
| class SignupSuccessForm | |
| include ActiveModel::Model | |
| attr_accessor :validation_token | |
| attr_accessor :transaction_id | |
| attr_reader :order | |
| validates_presence_of :validation_token, :transaction_id | |
| validate :order_must_exist |
| ## Prepare ################################################################### | |
| # Remove RVM | |
| rvm implode | |
| # Ensure your homebrew is working properly and up to date | |
| brew doctor | |
| brew update | |
| ## Install ################################################################### |
| function cache_store(callback,key,value){} | |
| function cache_retrieve(callback,key) {} | |
| function slow_function(callback,input){} | |
| function memorize(callback, slow_function) { | |
| var self = this, result; | |
| self.result = cache_retrieve(callback,slow_function); |
| # ============================================================================= | |
| # CUSTOM OPTIONS | |
| # ============================================================================= | |
| set :user, "deploy" | |
| set :application, "myapp" | |
| server "127.0.0.1", :app, :web, :db, :primary => true | |
| # ============================================================================= | |
| # DATABASE OPTIONS | |
| # ============================================================================= |
| <settings> | |
| <pluginGroups> | |
| <pluginGroup>com.atlassian.maven.plugins</pluginGroup> | |
| </pluginGroups> | |
| <servers/> | |
| <profiles> | |
| <profile> | |
| <id>jboss-public-repository</id> | |
| <repositories> | |
| <repository> |
| element.style { | |
| background: none repeat scroll 0 0 black; | |
| display: block; | |
| height: 100%; | |
| left: 0; | |
| opacity: 0.2; | |
| position: fixed; | |
| top: 0; | |
| width: 100%; | |
| z-index: 99; |
| description "Juggernaut server" | |
| start on started mountall | |
| stop on shutdown | |
| # Automatically Respawn: | |
| respawn | |
| respawn limit 99 5 | |
| script |
| $ sudo adduser --system --no-create-home --disabled-login --disabled-password --group juggernaut | |
| $ sudo mv ~/juggernaut2-for-init.d-startup.sh /etc/init.d/juggernaut | |
| $ sudo chmod +x /etc/init.d/juggernaut | |
| $ sudo update-rc.d -f juggernaut defaults |
| $ sudo adduser --system --no-create-home --disabled-login --disabled-password --group redis | |
| $ sudo mv ~/init-deb.sh /etc/init.d/redis | |
| $ sudo mkdir /etc/redis | |
| $ sudo mv ~/redis.conf /etc/redis/redis.conf | |
| $ sudo chmod +x /etc/init.d/redis | |
| $ sudo chown -R redis:redis /opt/redis | |
| $ sudo touch /var/log/redis.log | |
| $ sudo chown redis:redis /var/log/redis.log | |
| $ sudo update-rc.d -f redis defaults |