Skip to content

Commit

Permalink
Now works with elasticbeanstalk t1.micro
Browse files Browse the repository at this point in the history
  • Loading branch information
Ultimater committed May 13, 2018
1 parent 2eb39a6 commit f54c5fe
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .ebextensions/01_setup_swap.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
commands:
01_setup_swap:
cwd: /
test: '[ ! -f /swapfile ] && echo "Swapfile already setup"'
command: |
fallocate -l 4G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
13 changes: 13 additions & 0 deletions .ebextensions/02_install_phalcon.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
commands:
02_phalcon_install:
# run this command from /tmp directory
cwd: /tmp
# don't run the command if phalcon is already installed (file /etc/php.d/phalcon.ini exists)
test: '[ ! -f /etc/php.d/phalcon.ini ] && echo "phalcon not installed"'
# executed only if test command succeeds
command: |
git clone --depth=1 git://github.com/phalcon/cphalcon.git \
&& cd cphalcon/build \
&& ./install \
&& echo extension=phalcon.so > /etc/php.d/phalcon.ini \
&& rm -rf ./cphalcon

0 comments on commit f54c5fe

Please sign in to comment.