Skip to content

Instantly share code, notes, and snippets.

@bjinwright
Created May 10, 2013 15:17
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjinwright/5555083 to your computer and use it in GitHub Desktop.
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.
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