DiscoverMeteor / DiscoverMeteor_It

La versione italiana del libro Discover Meteor
http://it.discovermeteor.com
Other
14 stars 12 forks source link

Pushing to it.discovermeteor.com #2

Open andreavaghi opened 10 years ago

andreavaghi commented 10 years ago

As the title say, how can i push the translations to it.discovermeteor.com? It's automatic?

SachaG commented 10 years ago

It's not 100% automatic right now, it's triggered every time someone pushes to DiscoverMeteorStatic. In the future I hope to make it more automatic, but in the meantime if you have a Heroku account I can give you access to the app and you can just do a git push heroku master manually.

andreavaghi commented 10 years ago

I have an heroku account, but afraid to mess up something :) Is it triggered when everyone push to DiscoverMeteorStatic? because i did some commit to DiscoverMeteor_it and then others pushed to DiscoverMeteorStatic but i didn't see any change in the translations so i think i maybe did something wrong

SachaG commented 10 years ago

It's because of the somewhat dumb way git submodules work. For a change to the DiscoverMeteor_it repo to appear in DiscoverMeteorStatic you need to:

  1. make the change locally
  2. push to DiscoverMeteor_it
  3. pull to DiscoverMeteor_it inside DiscoverMeteorStatic
  4. commit DiscoverMeteorStatic
  5. push DiscoverMeteorStatic

If you use something like SourceTree the workflow becomes a bit clearer, because once you do step 3 you'll see the updated submodules waiting to be committed along with your other files.

Anyway, we're hoping to write a script that will automate steps 3, 4, 5 as soon as you do step 2. But yeah, for now it's a little cumbersome…

andreavaghi commented 10 years ago

Thanks for the explanation! it maybe sound like a noob question, but how do i 'pull to DiscoverMeteor_it inside DiscoverMeteorStatic'?

SachaG commented 10 years ago

Just:

cd source/chapters/it then git pull

Or if you want to pull all submodules: git submodule foreach git pull from the project's root.