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)
# Vagrant Boxes | |
.vagrant | |
# Magento Connect 2 cache directories and files | |
downloader/pearlib/cache/ | |
downloader/*.cfg | |
downloader/.cache/ | |
# Magento runtime media files | |
media/catalog/product/cache/ |
#!/usr/bin/env php | |
<?php | |
$output = array(); | |
$return = 0; | |
exec('git rev-parse --verify HEAD 2> /dev/null', $output, $return); | |
$against = $return == 0 ? 'HEAD' : '4b825dc642cb6eb9a060e54bf8d69288fbee4904'; | |
exec("git diff-index --cached --name-only {$against}", $output); |
#!/usr/bin/env php | |
<?php | |
$output = array(); | |
$return = 0; | |
exec('git rev-parse --verify HEAD 2> /dev/null', $output, $return); | |
$against = $return == 0 ? 'HEAD' : '4b825dc642cb6eb9a060e54bf8d69288fbee4904'; | |
exec("git diff-index --cached --name-only {$against}", $output); |
☠ AA-L-JOSHJ:.phpenv $ phpenv install --releases |dev ✔ | | |
+ [phpenv:33] '[' -z '' ']' | |
+ [phpenv:34] PHPENV_ROOT=/Users/jjohnson/.phpenv | |
+ [phpenv:38] export PHPENV_ROOT | |
+ [phpenv:40] '[' -z '' ']' | |
++ [phpenv:41] pwd | |
+ [phpenv:41] PHPENV_DIR=/Users/jjohnson/.phpenv | |
+ [phpenv:50] export PHPENV_DIR | |
+ [phpenv:53] shopt -s nullglob | |
++ [phpenv:55] abs_dirname /Users/jjohnson/.phpenv/bin/phpenv |
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)
.fluid-row { | |
div, section, article, li { /* Needs testing on li's */ | |
&:first-child { /* using first child and margin-left for IE support */ | |
margin-left: 0; | |
} | |
} | |
} | |
.fluid-column(@columns: 1, @offset: 0, @reset: default) { | |
.input-block-level(); |
We've had to patch this module several times for different projects because it is a useful module, just doesn't do version comparison correctly which can cause bugs. We submitted our code changes to MageParts developers and documented the errors we were experiencing with their module on a Magento EE 1.12.0.2 installation, but they have yet to incorporate our bug fixes — that's why I feel the need to document what the necessary changes are to be made to the module so that it works as expected.
This code is pulled from production code, so local package names have been replaced with "MYMOD" (or mymod_
for short codes or XML configuration files)
Pre-requisites:
app/code/community
directoryperl -pi -e 's/DEFINER\=\`developer\`/DEFINER\=\`staging_user\`/g' my_database_dump_file.sql |
set :stage, 'production' | |
set :shared_children, shared_children << 'tmp/sockets' | |
puma_sock = "unix://#{shared_path}/sockets/puma.sock" | |
puma_control = "unix://#{shared_path}/sockets/pumactl.sock" | |
puma_state = "#{shared_path}/sockets/puma.state" | |
puma_log = "#{shared_path}/log/puma-#{stage}.log" | |
namespace :deploy do | |
desc "Start the application" |
#!/usr/bin/env bash | |
# Simple move this file into your Rails `script` folder. Also make sure you `chmod +x puma.sh`. | |
# Please modify the CONSTANT variables to fit your configurations. | |
# The script will start with config set by $PUMA_CONFIG_FILE by default | |
PUMA_CONFIG_FILE=config/puma.rb | |
PUMA_PID_FILE=tmp/pids/puma.pid | |
PUMA_SOCKET=tmp/sockets/puma.sock |