-
Notifications
You must be signed in to change notification settings - Fork 11
Migration from v0.1.0
First of all, thank you for sticking with this project's progress. We're sorry that updating Djacket took so long and a simpler way to deploy/develop was not offered sooner. Fortunately we got here, at last.
Good part is that migrating is not difficult at all and v0.2.0 is fully compatible with migration from v0.1.0.
If at the time you're reading this, Djacket is on a version greater than 0.2.0, first migrate to v0.2.0 as explained below then update to latest version at the time being.
First you need to create 4 folders with these purposes:
- Database folder (we call it DB_FOLDER)
- Git deposit folder (we call it DEPOSIT_FOLDER)
- Media folder (we call it MEDIA_FOLDER)
- Static files folder (we call it STATIC_FOLDER)
now the move these parts from your v0.1.0 installation as follows:
- Copy the database file (djacketdb.sqlite3) to DB_FOLDER.
- Next copy your deposit folder content to DEPOSIT_FOLDER.
- At last copy your media folder content (stock and avatars) to MEDIA_FOLDER.
- Leave STATIC_FOLDER empty.
and that's all we needed.
First clone the project and switch to v0.2.0:
git clone https://github.com/Djacket/djacket.git
cd djacket
git checkout tags/v0.2.0
./djacket.sh prod (or ./djacket.sh dev if you want the development mode.)
This will begin the installation process in which you should enter paths discussed above (DB_FOLDER, DEPOSIT_FOLDER, MEDIA_FOLDER and STATIC_FOLDER). After this process you'll have a fully working v0.2.0 with your old belongings. and now type in:
./djacket.sh stop (or press "CTRL + c" to stop development mode.)
git checkout master
Right now if there's a newer version than 0.2.0, when you call
./djacket.sh prod (or ./djacket.sh dev if you want the development mode.)
again to start Djacket, all the required steps will be executed to keep your installation up-to-date.