Hello geeks!
When programming rails I was very releaved having git at my site.
And lately I was forced to deal with git sooner than expected
Normaly I end deploying with this command,
and of course before that I checked my local installation:
This time I had some trouble with my asset pipeline in production mode.
Mainly because of the integration of russfrisch's html5 boilerplate.
It took me a while to realize my mistake with rescuing my remote installation,
because I was fixing my local system with this command:
Well, this did not work..........................
I forgot the fact my remote git system is used by capistrano to deploy,
so I had to set that bare repository back too:
Keep in mind I only have a master branch, not any other branches.
Now my local and remote system are rolled back.... and working again ;)
PS: do a pull to make sure no conflicts are there, or merge or whatever:
When programming rails I was very releaved having git at my site.
And lately I was forced to deal with git sooner than expected
Normaly I end deploying with this command,
and of course before that I checked my local installation:
cap deploy
This time I had some trouble with my asset pipeline in production mode.
Mainly because of the integration of russfrisch's html5 boilerplate.
It took me a while to realize my mistake with rescuing my remote installation,
because I was fixing my local system with this command:
git log # look for hash
git reset --hard *hash* # insert you hash where to go back to
cap deploy # new deployment of old version
Well, this did not work..........................
I forgot the fact my remote git system is used by capistrano to deploy,
so I had to set that bare repository back too:
git push --force origin *hash*:master # insert the same hash, see 'git log'
Keep in mind I only have a master branch, not any other branches.
Now my local and remote system are rolled back.... and working again ;)
PS: do a pull to make sure no conflicts are there, or merge or whatever:
git pull
# or git push -f origin master
Kommentare
Kommentar veröffentlichen