Created
March 1, 2016 19:04
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" | |
] | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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