You Can Set Up A
WordPress Dev Environment
on
Windows
Who am I and why am I up here?
- 40+ years in IT
- Beginning with software and now returning to it
- Freelance web developer and business owner
- Started with Microsoft -
Why change now?
You may be familiar with ...
Goal for Session
- Create environment on a Windows 10 box that
- Offers familiar Windows UI
- Robust toolset
- Duplicatable
- Low cost
- Includes features such as:
- Local build & testing
- Smart file editing
- FTP connection to hosting server
- Deployment
This is What I Have in Mind
- DesktopServer
- Sublime Text 3
- FileZilla FTP Client
- SourceTree GUI Git Interface
- WP Migrate DB Pro painfree migration
- Bitbucket Distributed Version Control / Backup
This is What I Have in Mind
Let's Jump In
Note to self:
Talk about the tools
My LAMP Stack
Editor Preference
-
Sublime Text 3 - Eval Free / Buy $70
FTP Client - Really?
- Yes - I insist!
- FileZilla - Just get it
- No editing files using the dashboard editor
DesktopServer
- "Buy" Free Version
- Download & Install
- Windows Installs to c:\xampplite
Setup DesktopServer
Build First Site - WordPress 5 Minute Install
- Start DesktopServer
- Create Shortcut => c:\xampplite\DesktopServer.exe
- Run as Administrator
- Port 80 Conflict => Skype?
Code Editing / Development
- Open Local Project Folder in Sublime Text
- Save Sublime Project
- Edit PHP and CSS as needed - Save
- Create files as needed - Save
- PHP aware - syntax highlighting
Test Changes
- Save files!
- Switch to Browser
- Refresh
- Repeat ad nauseam
A Little Deployment Anyone? Basic Assumptions
- New WordPress Installation Exists on Host
- Plugin WP Migrate DB Pro Installed and Activated
on local and remote sites
- Migrate DB Pro handles the handshake between installations
- Authenticates connection
- Uploads DB to remote server
- Performs Search & Replace on db table entries
- Connect to remote site via FTP
Deployment Magic with
WP Migrate DB
Dull FTP Upload of WP-CONTENT
- FileZilla
- SFTP/FTP connection to remote site
- Drag WP-CONTENT from local to remote
Remainder of Git process
left as an exercise for the viewer ;-)
Sigh
Lather · Rinse · Repeat
Time For A Little Control
- SourceTree
- Create a local repository
- Add your project folder
Remainder of Git process
left as an exercise for the viewer ;-)
Lingering Thoughts
anyone?
anyone?