How to develop with no ftp andwithout freaking outmartedì 23 aprile 13
FTP Alternatives• Direct Server editing• SFTP• GIT• Magic Dustmartedì 23 aprile 13
FTP AlternativesDirect Server Editing and SFTPnot covered here... suitable for single server environmentsmartedì 23 aprile...
GITWTF?martedì 23 aprile 13
GIT - 1- Simple and effective way to keep track of changes on files- Distributed- Very Popular -> Integrated in your OS, man...
GIT - 2GIT is the ideal solution to manage a multi-tiers, multi-environments, multi-developers projectLast commit changesL...
GIT - 3This GIT is very Coooool!But, Wait, What...DO I HAVE TO COMMIT EVERYTIME I WANT TO SEE A CHANGESIN THE CODE?martedì...
The “Magic Dust” Solution+martedì 23 aprile 13
The “Magic Dust” SolutionOpen a Terminal (If you use Windows, I’m sorry for you)> cd ~/Dropbox (ops .... :D)> mkdir live-i...
> cd ~/Dropbox/live-supersito.com> save the changes: git add . && git commit -m ‘first version of the site’> upload to gith...
Want to test out some changes?> cp -R ~/Dropbox/live-supersito.com ~/Dropbox/test-supersito.com> cd ~/Dropbox/test-supersi...
You can now develop on both version of the site:1. ~/Dropbox/test-ilmiosupersito.com for the test environment2. ~/Dropbox/...
Ah, uhm, so you want to put the test changes on live?PUSH your changes to github> cd ~/Dropbox/test-supersito.com> git add...
Using GIT is a MUST, but by using Dropbox in the middle you can:- Work locally on your computer- Have a fresh copy of the ...
THANKS!Daniel MarziniCEO & Founder ElasticDot+393319573710d@elasticdot.commartedì 23 aprile 13
Upcoming SlideShare
Loading in …5
×

WordPress MeetUp Milano 23:04:13

354 views

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
354
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

WordPress MeetUp Milano 23:04:13

  1. 1. How to develop with no ftp andwithout freaking outmartedì 23 aprile 13
  2. 2. FTP Alternatives• Direct Server editing• SFTP• GIT• Magic Dustmartedì 23 aprile 13
  3. 3. FTP AlternativesDirect Server Editing and SFTPnot covered here... suitable for single server environmentsmartedì 23 aprile 13
  4. 4. GITWTF?martedì 23 aprile 13
  5. 5. GIT - 1- Simple and effective way to keep track of changes on files- Distributed- Very Popular -> Integrated in your OS, many clientsmartedì 23 aprile 13
  6. 6. GIT - 2GIT is the ideal solution to manage a multi-tiers, multi-environments, multi-developers projectLast commit changesLast commitsmartedì 23 aprile 13
  7. 7. GIT - 3This GIT is very Coooool!But, Wait, What...DO I HAVE TO COMMIT EVERYTIME I WANT TO SEE A CHANGESIN THE CODE?martedì 23 aprile 13
  8. 8. The “Magic Dust” Solution+martedì 23 aprile 13
  9. 9. The “Magic Dust” SolutionOpen a Terminal (If you use Windows, I’m sorry for you)> cd ~/Dropbox (ops .... :D)> mkdir live-ilmiosupersito.com> cd live-ilmiosupersito.com && git init> upload you first index.html (or the entire WordPress latest.zip here)martedì 23 aprile 13
  10. 10. > cd ~/Dropbox/live-supersito.com> save the changes: git add . && git commit -m ‘first version of the site’> upload to githubgit remote add origin git@github.com:mindgap/elasticdot-corporate.gitgit push origin masterThe “Magic Dust” Solution -1martedì 23 aprile 13
  11. 11. Want to test out some changes?> cp -R ~/Dropbox/live-supersito.com ~/Dropbox/test-supersito.com> cd ~/Dropbox/test-supersito.com> git branch test && git checkout testThe“Magic Dust” Solution -2martedì 23 aprile 13
  12. 12. You can now develop on both version of the site:1. ~/Dropbox/test-ilmiosupersito.com for the test environment2. ~/Dropbox/live-ilmiosupersito.com for the production environmentPoint to these paths your browser or webserverThe“Magic Dust” Solution -3martedì 23 aprile 13
  13. 13. Ah, uhm, so you want to put the test changes on live?PUSH your changes to github> cd ~/Dropbox/test-supersito.com> git add . && git commit -m ‘new cool theme’ && git push origin testPUT THEM in PRODUCTION> cd ~/Dropbox/test-supersito.com> git checkout master> git merge test && git push> git ~/Dropbox/live-supersito.com> git pullDONE!The“Magic Dust” Solution -4martedì 23 aprile 13
  14. 14. Using GIT is a MUST, but by using Dropbox in the middle you can:- Work locally on your computer- Have a fresh copy of the code on your server as soon as you merge- Have always a backup and the history of the changesConclusionmartedì 23 aprile 13
  15. 15. THANKS!Daniel MarziniCEO & Founder ElasticDot+393319573710d@elasticdot.commartedì 23 aprile 13

×