Wordpress on Engine Yard AppCloud
Have you wanted to get Wordpress installed on Engine Yard AppCloud? Well we have something in common then!
Step 1. Fork this Repository
Of course you'll need a github account, but then if you're here you probably have one.
You need to fork your own Git Repository URI so that you can add a Deploy Key in a few steps.
Step 2. Add the Application to Your EY AppCloud Account
- Click on Applications under Server Tools on the left.
- Then look for the Add a New Application button in the top right. Click on that.
- Give the Application Name of "wordpress".
- Copy and paste your Git Repository URI, you just forked in Step 1.
- Change the Application Type to Rack.
- The latest version of Rack is fine, it's ultimately irrelevant.
- Click the Create application button to save your app.
Step 3. Add Your Git Deploy Key to Your Repository's Deploy Key
- On your repository's page click on the Admin button.
- Then click on Deploy Keys under the left hand side.
- Click on Add another deploy key.
- Give it a Title like "EY AppCloud".
- Then paste in the Key, and click on the Add key button.
- Then switch back to EY AppCloud and click on the My Deploy Key is in Place button.
- There are no extra Gems to setup, click the Next Step button to proceed to Step 4.
Step 4. Configure Unix Packages
- Enter "dev-lang/php" in the search.
- Click the Add -> button to add PHP to the wordpress application.
- Enter "lighttpd" in the search.
- Click on Add -> button so we get the fcgi processes from the lighttpd package.
- Now we're done configuring the Unix Packages so click on Go to dashboard.
Step 5. Create a New Environment
- From the Dashboard, click on the Create New Environment button.
- Give your Environment a name, I choose "blog".
- The rest of the default options are fine, click "Create environment" to save the settings.
- You then need to choose which Application to add to your Environment. Choose the wordpress application we configured in Steps 2 - 4, by clicking on the "Add to blog" button.
- The Choose a Domain Name dialog appears. Just click Save domain name to proceed.
Step 6. Boot Your Environment
- Click on the Boot Instances button for your Environment.
- The default instance size is a High CPU Medium. If this is more than you need, you can click on Custom and choose Small from the Server size drop-down list.
- In order to setup your DNS later, you'll need to use an IP address. So make sure to choose Add IP Address from the External Address drop-down.
- Click Boot This Configuration to start the instance.
Step 7. Meanwhile Back at the CLI
While that environment boots, let's get some other things setup. In order to complete the installation, you'll need to install the
sudo gem install engineyard
You also need to have your repository checked out to your local machine, so we can run a couple of commands to upload and run custom chef recipes on your environment.
- Open your code directory.
- Run the git command to clone the repository locally. USE YOUR REPO
git clone email@example.com:<username>/wordpress.git
- Now move into that folder so we can upload the chef recipes.
ey recipes upload
- This command will prompt you for your username and password (unless you've used this before). Enter the same user/pass you use to login to Engine Yard AppCloud.
- Then we'll run the custom chef recipes from the CLI to finish it off.
ey recipes apply
- Now log back into EY AppCloud and to deploy your app in Step 8.
Step 8. Deploy Your Application & Run Chef
- In the Dashboard, click on the Applications tab for your environment.
- Click on the Deploy link there.
Step 9. Open Your Wordpress Blog
- Now you're ready to click on the HTTP link in your environment.
- You can start to setup your Wordpress blog. Enjoy!
Explanation of Non-Wordpress Files
README.markdown | You're reading it sonny-jim. Rakefile | Tasks to create a cookbook or test for syntax errors. cookbooks/ | The custom chef recipes folder. deploy/ | This folder allows for EY AppCloud deploy hooks.
Read the code in the files for more information. The rest of the files are needed to run Wordpress.