Skip to content

Migrating from old bench

Pratik Vyas edited this page Jul 21, 2014 · 11 revisions

Migrating from old bench

  • Install new bench

     cd ~
     git clone https://github.com/frappe/bench-repo
     sudo pip install -e bench-repo
    
  • Remove unnessesary files

     cd ~/frappe-bench
     rm -rf install_scripts scripts templates standard_apps.json Readme.md .gitignore .git .update_bench
    
  • Remove old crontab entries, check if you have crontab entries from the previous bench by running crontab -l and remove them by editing the crontab using crontab -e.

  • Setup bench

     cd ~/frappe-bench
     bench setup config							# sets up config.json
     bench setup backups							# sets up auto backup every 6hrs
     bench setup auto-update						# auto updates bench and your erpnext instance every day at 10AM
     sudo bench setup sudoers					# required to restart supervisor (if production is setup)
     bench config restart_supervisor_on_update on# restart supervisor automatically after update (if production is setup)
    

If all goes well, you should be able to switch to the new bench without any downtime.