Giter Club home page Giter Club logo

salty-wordpress's Introduction

Salty WordPress

A flavorful way to manage your entire WordPress stack. Built and maintained by Human Made.

Coming soon: Provisioning production servers with Salty WordPress.

Getting Building

Salty WordPress uses three great technologies: Salt, Vagrant, and WordPress. It's intended to get you building amazing projects as quickly and effectively as possible.

Here's how to get building:

  1. Clone the repo: cd ~/; git clone [email protected]:humanmade/Salty-WordPress.git.
  2. Install the version of Vagrant and version 4.2.12 of Virtual Box.
  3. Once Vagrant is installed, install Salty Vagrant plugin to provision (aka configure) your virtual machine with Salt. All you need to do is vagrant plugin install vagrant-salt from your local machine. Ignore the other instructions on the Salty Vagrant repo. Salty Vagrant will eventually be merged into Vagrant itself.
  4. Change into the Salty WordPress directory and run vagrant up. This will take some time. Behind the scenes, Vagrant and Salt are downloading all of the system utilities (e.g. Nginx, PHP5-FPM, Memcached, etc.) to run your virtual machine.
  5. In your /etc/hosts file, point any domains you plan to work on to 192.168.50.10. The virtual machine is configured to handle all requests to *.dev. The WordPress trunk install, for instance, should be wordpress-trunk.dev.
  6. Access your virtual machine with vagrant ssh.

Navigate to wordpress-trunk.dev in your browser to see a fully-functional WordPress install, powered by Salty WordPress. The default admin username/password is humanmade/humanmade.

Neat Tricks

Make your Salty WordPress experience even more awesome with these neat tricks.

CLI Hacks

  • Deserialize data with $~ serialize '[php serialized code]'
  • Display a timestamp as a human readable string $~ timestamp 1143123342 [ouputs "2006-03-23T14:15:42+00:00"]

Open Remote Files in Sublime Text

Using couple of neat tools, rsub and rmate, you can open files located in Vagrant in Sublime Text. We've even bound subl so the syntax is similar to what you have in your local machine.

However, for this functionality to work properly, you'll need to SSH into Vagrant using SSH (and port forwarding), not vagrant ssh. Use vagrant ssh-config (ref) to generate what you need to put in ~/.ssh/config. Then, add RemoteForward 52698 127.0.0.1:52698 to the entry (ref).

Now, when you SSH into Vagrant, you'll automatically set up a connection for rmate to communicate to rsub (a Sublime Text plugin).

salty-wordpress's People

Contributors

danielbachhuber avatar joehoyle avatar mattheu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.