• Hi Guys,

    I have a question about installing wordpress on a localhost, editing it in dreamweaver and using github for version control and synchronization. Let me explain.

    This is what I want to do.

    1. Create a github repo for my site
    2. Clone the repo to my local machine
    3. Using MAMP install a localhost version of wordpress into the folder for the repo I have just cloned
    4. Create a new site in dreamweaver and connect it to my github repo
    5. Using dreamweaver, create a new branch of my github repo called site_pages which I will use to create the rest of my sites pages
    6. Using dreamweaver, create a new branch of my github repo called wordpress_install – which I will use to edit the wordpress theme, to make it match the rest of my site
    7. Merge the site_pages and wordpress_install branches back into the master
    8. Synchronise my github repo with my remote server using the built in SSH capabilities of dreamweaver

    It is my intention, that I would be able to use dreamweaver to create and put my site, MAMP to install wordpress and github for version control and collaboration.

    At the end of the day, I want a fully working site, including a wordpress installation, which I will use as my blogging platform

    Will this set up work, is there a better way to do this?

    Help and advice will be greatly appreciated

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi there,

    There are multitudes of ways to go about this.
    Using Dreamweaver + MAMP is quite an odd combination (coming from 5+ years of commercial dev experience) and not recommended.
    But if you’re going to go this way here is my advice.

    Your biggest problem here will be keeping the WordPress Install + Theme in seperate repositories.

    So you will need a repository for your WordPress Install + Plugins.

    Have another repository for just the theme that you upload to the WordPress install (don’t worry about merging the two repositories together, keep them seperate to keep it simple).

    This does mean you’ll have two repositories, but any WordPress updates / Plugin updates you can easily track and push to your live site without polluting commit history with your theme updates (and also dealing with a whole lot of merges).

    If you’re dead set on using MAMP, the best to do this will be to:

    1. Checkout the WordPress Repository you have made into MAMP/htdocs
    2. Add a gitignore entry for wordpress-install/wp-content/themes/*your-theme*
    3. Checkout your WordPress theme you’ve just made (NOT in MAMP/htdocs, can be anywhere else on your computer)
    4. Set the repository you’ve just checked out to sync to MAMP/htdocs/wordpress-install/wp-content/themes/ when you save a file (initially you want to sync all the files into the theme) – *Note* Not sure if Dreamweaver can do this. I know in Sublime-Text you can use FileSync Plugin.

    Doing it this way will keep things very simple, in my opinion if you plan on doing it the way you mentioned above the git branches / commits will get very messy, very quickly.

    Then when it comes to push changes to your live website you you can sync across whatever is in MAMP/htdocs/wordpress to your server.

    *Note* Having everything in one repository will allow you to use git post receive hooks to automate deployment. The advice above is just to get you started in an easy way that will keep your life simple and help you understand the process.

    Are you on a MAC?
    Ditch MAMP all together and set your Mac up to be a Web Dev environment. Since the MAC already has Apache web server built in, it just takes a few tweaks to get it set up for WordPress development.

    https://mallinson.ca/osx-web-development/

    Dreamweaver? Yuck!

    Get Sublime Text

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How would I use github, MAMP and dreamweaver and wordpress in my workflow?’ is closed to new replies.