Signets (Bookmarks)

Stéphane Thibault >_

Hosting a WordPress site on AppFog, without persistent file storage » StevePerkins.net.

[…] AppFog currently does not offer a persistent file system. As with most PaaS providers right now, all persistent data is expected to go in a database.

What this means is that every time your application restarts, all files revert to the state they were in when last uploaded. Most WordPress activity, such as posts and comments, lives in the database and requires no special consideration. However, if you install some plugins or themes, or any other updates which write to files, then all those changes will be rudely rolled-back. Even worse, the database will not be rolled-back, so your WordPress files and data may be out of sync and broken.

Stéphane Thibault >_

Re-normalizing a repository After you’ve set the core.autocrlf option and committed a .gitattributes file, you may find that git wants to commit files that you’ve not modified. This is because git wants to normalize the line endings for you. The best way to do this is wipe out your working tree (all the files except the .git directory) and then restore them. Make sure you’ve committed any work before you do this, or it will be lost.

Stéphane Thibault >_

"Only do this on commits that haven’t been pushed an external repository. If others have based work off of the commits that you’re going to delete, plenty of conflicts can occur. Just don’t rewrite your history if it’s been shared with others."