Skip to content

Migrating your erpnext instance to wsgi

Pratik Vyas edited this page Apr 9, 2014 · 4 revisions
  • Backup your database and files using: Tools > Download Backup

  • Upgrade to Python 2.7+. Check your python version with this command, python -c "import platform; print platform.python_version()"

    Make sure you use altinstall so as not to break your existing operating system tools.

  • Don't use lib/wnf.py for updating. Use git commands to pull updates in app and lib folders.

     cd app && git pull origin master && cd ..
     cd lib && git pull origin master && cd ..
     sudo pip install -r lib/requirements.txt
     ./lib/wnf.py --latest
     ./lib/wnf.py --build
    
  • To update in future, you may use wnf.py pull,

     cd app && git pull origin master && cd ..
     cd lib && git pull origin master && cd ..
     ./lib/wnf.py --latest
     ./lib/wnf.py --build
    

Development Sever

  • ./lib/wnf.py --serve

The serve command starts a development server on port 8000. You do not have to run apache server for development.