How to enter development environment


I just set a production of erpnext up with easy script --setup production.

I want to test to modify some HTML. How to enter develpment environment of frappe framework?


Don’t edit on production system else bench update won’t work. Setup a local environment.

As advised on github, I ran As am looking to run a development enviorment

When I load up the browser , I am just welcomed by the ngix welcome screen. I checked apps folder and sites folder. erpnext and the site have been installed as expected.

I tried running bench start but it gives an error.

frappe@li548-37:~/frappe-bench$ bench start
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 9, in <module>
    load_entry_point('bench==0.1', 'console_scripts', 'bench')()
  File "/home/frappe/bench-repo/bench/", line 55, in cli
  File "/usr/local/lib/python2.7/dist-packages/click/", line 664, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/", line 644, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/", line 988, in invoke
    Command.invoke(self, ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/", line 837, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/", line 464, in invoke
    return callback(*args, **kwargs)
  File "/home/frappe/bench-repo/bench/", line 144, in bench
  File "/home/frappe/bench-repo/bench/", line 189, in setup_logging
    hdlr = logging.FileHandler(log_file)
  File "/usr/lib/python2.7/logging/", line 911, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib/python2.7/logging/", line 936, in _open
    stream = open(self.baseFilename, self.mode)
IOError: [Errno 13] Permission denied: '/home/frappe/frappe-bench/logs/bench.log'

K I noticed the setup script if not production points to the develop branch. I shall edit the script and try

Ok that worked thanks guys