lightweight local dev setup

In an effort to change old habits, a lot of my recent posts have to do with new tools and working with different processes. The nasty old habit, in this case, is working directly in production environments without source control.

Here is a set of steps to working locally in a really lightweight manner:

  1. create directory for development and navigate to it within the command line
  2. assuming there is a repos already in existence, clone it into said directory and make a branch to develop on
  3. git clone...
    git branch <name-of-branch>
    git checkout <name-of-branch>
  4. install dependencies (bower install)
  5. setup pre-processing:
    codekit (just drag the folder onto codekit)
  6. startup php local webserver in folder
    php -S localhost:8000
  7. make files, edit files, etc.

  8. commit changes to git
    echo ".DS_Store" >> .gitignore
    git add .
    git commit -a -m "message"
    git push --set-upstream origin <name-of-branch>
  9. thereafter, make changes and push them
  10. git add .
    git commit -a -m "message"
    git push origin master

Leave a Reply

Your email address will not be published. Required fields are marked *