Skip to content

Instantly share code, notes, and snippets.

@tobsn
Created March 1, 2016 19:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tobsn/1f4caf566ef19109e91f to your computer and use it in GitHub Desktop.
Save tobsn/1f4caf566ef19109e91f to your computer and use it in GitHub Desktop.
deploy magento on elastic beanstalk with composer post install command to write production config
{
"require": {
"magento-hackathon/magento-composer-installer": "3.0.*",
"aydin-hassan/magento-core-composer-installer": "^1.3",
"firegento/magento": "1.9.2.2"
},
"extra": {
"magento-root-dir": "htdocs",
"auto-append-gitignore": true,
"magento-deploystrategy": "copy",
"magento-force": true
},
"scripts": {
"post-install-cmd": [
"bash postupstall.sh"
],
"post-update-cmd": [
"bash postupstall.sh"
]
}
}
#!/bin/bash
# ondeck is the temp deploy folder of elastic beanstalk
if [ "$PWD" = "/var/app/ondeck" ]
then
cp -rf ./htdocs/app/etc/local.production.xml ./htdocs/app/etc/local.xml
fi
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment