Go to Install the Elastic Beanstalk Command Line Interface (EB CLI) for instructions.
$ mkdir my-app
$ cd my-app
$ eb init my-app -p PHP| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
Go to Install the Elastic Beanstalk Command Line Interface (EB CLI) for instructions.
$ mkdir my-app
$ cd my-app
$ eb init my-app -p PHP$ sudo yum update -y$ sudo yum update http24 php70 mysql56-server php70-mysqlnd -y| #!/bin/bash | |
| # The document root of the project | |
| APP_ROOT= | |
| # The directory of the remote repository | |
| GIT_DIR= | |
| # What branch to accept | |
| BRANCH="master" | |
| composer=~/bin/composer | |
| wp=~/bin/wp |
| #!/usr/bin/env bash | |
| sqllocation=~/.sql_backup_files | |
| # echo $(wp --version) | |
| wp --version >/dev/null 2>&1 || { | |
| echo "I need 'wp' command to be able to execute further" | |
| exit 1 | |
| } | |
| # Check if it is a wordpress directory or is installed |
| #!/usr/bin/env sh | |
| project_root=$1 | |
| tmp_dir=$project_root/.tmp | |
| files_dir=$tmp_dir/files | |
| include_db=1 | |
| files=( | |
| wp-config.php | |
| wp-content/themes/zeko | |
| wp-content/themes/zeko-child |
| #!/usr/bin/env sh | |
| # Install php71 | |
| apt-get install -y python-software-properties | |
| add-apt-repository -y ppa:ondrej/php | |
| apt-get update -y | |
| apt-get install -y php7.1 php7.1-fpm php7.1-cli php7.1-common php7.1-mbstring php7.1-gd php7.1-intl php7.1-xml php7.1-mysql php7.1-mcrypt php7.1-zip | |
| # Tell apache to use php71 | |
| a2enmod proxy_fcgi setenvif | |
| a2enconf php7.1-fpm |
| var a = { | |
| one: { | |
| nested: 'a', | |
| onlyInA: 'a', | |
| nestedMore: { what: 'a' }, | |
| }, | |
| aOnly: 'a only', | |
| }, b = { | |
| one: { | |
| nested: 'b', |
| #!/usr/bin/env bash | |
| script_filename=$0 | |
| plugin_name=$1 | |
| version=$2 | |
| plugins_dir=~/plugins | |
| old_plugins_dir=~/old-plugins | |
| script_name="Wordress Plugin Updater" | |
| script_description="Updates a wordpress plugin given the local plugin directory path." | |
| plugin_filename= |