Skip to content

Instantly share code, notes, and snippets.

@mgeoffray
Last active January 15, 2017 18:18
Show Gist options
  • Save mgeoffray/5033bcfa9775249f377685c17f21b16d to your computer and use it in GitHub Desktop.
Save mgeoffray/5033bcfa9775249f377685c17f21b16d to your computer and use it in GitHub Desktop.
Magento 1 - Initialize development environment using n98-magerun
function init_dev_env_mag1() {
n98mr config:set dev/log/active 1
n98mr config:set dev/template/allow_symlink 1
n98mr config:set web/cookie/cookie_httponly 0
n98mr config:set web/cookie/cookie_path ""
n98mr config:set web/cookie/cookie_domain ""
n98mr config:set dev/js/merge_files 0
n98mr config:set dev/css/merge_files 0
n98mr config:set dev/css/merge_css_files 0
n98mr config:set admin/security/session_cookie_lifetime 7200
n98mr config:set google/analytics/active 0
n98mr config:set google/analytics/account ""
n98mr cache:clean
n98mr cache:disable
n98mr admin:user:delete --force ${MAGENTO_LOCAL_ADMIN_USERNAME}
n98mr admin:user:create ${MAGENTO_LOCAL_ADMIN_USERNAME} ${MAGENTO_LOCAL_ADMIN_EMAIL} ${MAGENTO_LOCAL_ADMIN_PWD} ${MAGENTO_LOCAL_ADMIN_FIRSTNAME} ${MAGENTO_LOCAL_ADMIN_LASTNAME}
n98mr customer:create ${MAGENTO_LOCAL_CUSTOMER_EMAIL} ${MAGENTO_LOCAL_CUSTOMER_PWD} ${MAGENTO_LOCAL_CUSTOMER_FIRSTNAME} ${MAGENTO_LOCAL_CUSTOMER_LASTNAME}
n98mr sys:check
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment