Cryptitan
Search…
⌃K

Updating

How to apply updates.
To apply update, you need to login to your server as the user account created at the point of installation.
You should take a look at the Change Logs for the version you are trying to update to before you start, there might be additional setups required for successful update.
After installation, don't rename your project folder. If you do so, a new instance of cryptitan will be built on the next startup.
  • Navigate to the home directory i.e. /home/neoscrypts/
cd ~
  • Stop cryptitan before you proceed.
./cryptitan stop
  • Make a backup of the project folder. For example, if your project folder is called cryptitan, run the following command to save a copy into another folder, e.g. cryptitan-backup
rsync -a cryptitan/ cryptitan-backup/
The ending slash "/" of the source and destination directory is required.
You should make a backup of the folder before you proceed, so you will be able to rollback in the event of an unexpected error.
  • Upload the update file using WinSCP to your home directory. (see: Uploading via SFTP).
  • Unzip the uploaded file.
unzip cryptitan-source-file.zip
cryptitan-source-file.zip here is the name of the zip file as downloaded from the marketplace. Example of the zip file, downloaded from CodeCanyon looks like: codecanyon-71g9eMsC-cryptitan-multi...
You should have a folder, e.g. cryptitan-2.0.0, where 2.0.0 is the version you want to update to.
Copy and overwrite the new files into cryptitan directory:
rsync -a cryptitan-2.0.0/ cryptitan/
The ending slash "/" of the source and destination directory is required.
Navigate into cryptitan directory and run the command:
./cryptitan update
Finally, run the command to rebuild and start:
./cryptitan recreate

Rolling Back

In the event of an unexpected error, and you need to rollback to a previous state.
Rolling back is not the best solution in some situations. This is because there are changes that could have been made on the database that is not compatible with the older version. If you experience any bug, submit it to us and we will patch it as soon as possible.
Copy and overwrite the project files from the backup location:
rsync -a cryptitan-backup/ cryptitan/
Navigate into cryptitan directory and run the command:
./cryptitan update
Finally, run the command to rebuild and start:
./cryptitan recreate

Updating docker-nginx

  • Navigate into thedocker-nginx directory:
cd ~/docker-nginx
  • Run the pull command:
git pull
  • Checkout to the 2.x branch:
git checkout 2.x
  • Then start up the service:
./nginx up -d