I use the latest Puma v1.4.0 from rubygems.
Make sure you have nginx installed with these options:
>/opt/nginx/sbin/nginx -V
nginx version: nginx/1.0.15
built by gcc 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)
BEFORE: | |
sam@ubuntu discourse % rm -fr tmp/cache | |
sam@ubuntu discourse % rm -fr public/assets | |
sam@ubuntu discourse % time RAILS_ENV=production bin/rake assets:precompile | |
58.55s user 1.79s system 100% cpu 1:00.02 total | |
AFTER: |
###Package for installation | |
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm | |
sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm | |
sudo yum install redis -y | |
###Start the server | |
sudo service redis start |
I use the latest Puma v1.4.0 from rubygems.
Make sure you have nginx installed with these options:
>/opt/nginx/sbin/nginx -V
nginx version: nginx/1.0.15
built by gcc 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)
// App Information | |
#define AppName [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleName"] | |
#define AppVersion [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleVersion"] | |
#define AppDelegate(type) ((type *)[[UIApplication sharedApplication] delegate]) | |
#define NSAppDelegate(type) ((type *)[[NSApplication sharedApplication] delegate]) | |
#define SharedApp [UIApplication sharedApplication] | |
#define NSSharedApp [NSApplication sharedApplication] | |
#define Bundle [NSBundle mainBundle] | |
#define MainScreen [UIScreen mainScreen] |
APP_ROOT = File.expand_path(File.dirname(File.dirname(__FILE__))) | |
RAILS_ROOT = APP_ROOT | |
if ENV['MY_RUBY_HOME'] && ENV['MY_RUBY_HOME'].include?('rvm') | |
begin | |
rvm_path = File.dirname(File.dirname(ENV['MY_RUBY_HOME'])) | |
rvm_lib_path = File.join(rvm_path, 'lib') | |
#$LOAD_PATH.unshift rvm_lib_path | |
require 'rvm' | |
RVM.use_from_path! APP_ROOT |
#!/usr/bin/env rake | |
# Add your own tasks in files placed in lib/tasks ending in .rake, | |
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. | |
#Load all the tasks in lib/tasks | |
Dir[File.expand_path('../lib/tasks/', __FILE__) + '/*.rake'].each do |file| | |
load file | |
end | |
#The original rails rakefile loading |