apache - Install google mod- pagespeed on elastic beanstalk on every instance added -
i've installed google mod-pagespeed following code:
container_commands: 01-command: command: rm -rf /pagespeed/ebextensions 02-command: command: mkdir -p /pagespeed/ebextensions 03-command: command: cp -r .ebextensions/* /pagespeed/ebextensions/ 04-command: command: rpm -u /pagespeed/ebextensions/mod-pagespeed.rpm
thanks answer is possible use aws beanstalk's .ebextensions config install mod_pagespeed apache module?
the problem apache running commands every time deploy, , make error second time (because mod-pagespeed installed), had remove commands, then, when new instance added, made lots of bugs, because 1 machine had mod-pagespeed. (not recomended!)
i need upload code installs mod-pagespeed on every new instance, , wont give me errors every time deploy new applications. ideas?
can make commands idempotent? may keep commands in script run script on instance through container commands. script create lock file in end script not on subsequent runs. should solve problem.
Comments
Post a Comment