Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.