Created
May 10, 2013 15:17
-
-
Save bjinwright/5555083 to your computer and use it in GitHub Desktop.
AWS Elastic Beanstalk container commands for installing mod_pagespeed. This example uses a Django application but just strip out commands 1 and 2 and it usable by any application. This is the follow up to the https://gist.github.com/bjinwright/5554958 Gist that shows how to setup the Apache conf file that makes this work.
This file contains 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
container_commands: | |
01_collectstatic: | |
command: "django-admin.py collectstatic --noinput" | |
02_lesscss: | |
command: "lesscpy -x static/css/base.less > static/css/base.css" | |
03_setup_apache: | |
command: "cp enable_mod_pagespeed.conf /etc/httpd/conf.d" | |
04_rm_pagespeed: | |
command: "rm -rf /pagespeed/ebextensions" | |
05_mkdir_pagespeed: | |
command: "mkdir -p /pagespeed/ebextensions" | |
06_copy_pagespeed: | |
command: "cp -R .rpms/* /pagespeed/ebextensions/" | |
07_install_pagespeed: | |
command: "rpm -U -iv --replacepkgs /pagespeed/ebextensions/mod-pagespeed.rpm" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment