Couldn't update bench

I’m trying to update the application but it fails continuously. I’m using google cloud and I have installed the app using the following command:- wget
After production installation, I couldn’t found any frappe or erpnext folder within my os and it might be the cause of the problem but my site runs perfectly. Is bench update program only available for development, not production or does it automatically update the app on a server for production grade setup?
bench update
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/home/frappe/.bench/bench/”, line 40, in cli
File “/usr/local/lib/python2.7/dist-packages/click/”, line 716, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/”, line 696, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/”, line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/”, line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/”, line 534, in invoke
return callback(*args, **kwargs)
File “/home/frappe/.bench/bench/commands/”, line 31, in update‘.’)
File “/home/frappe/.bench/bench/patches/”, line 21, in run
result = execute(bench_path)
File “/home/frappe/.bench/bench/patches/v3/”, line 7, in execute
frappe_branch = get_current_branch(‘frappe’, bench_path)
File “/home/frappe/.bench/bench/”, line 177, in get_current_branch
return get_cmd_output(“basename $(git symbolic-ref -q HEAD)”, cwd=repo_dir)
File “/home/frappe/.bench/bench/”, line 321, in get_cmd_output
return subprocess.check_output(cmd, cwd=cwd, shell=True, stderr=open(os.devnull, ‘wb’)).s
File “/usr/lib/python2.7/”, line 566, in check_output
process = Popen(stdout=PIPE, *popenargs, **kwargs)
File “/usr/lib/python2.7/”, line 710, in init
errread, errwrite)
File “/usr/lib/python2.7/”, line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory: ‘./apps/frappe’

you should be able to find it in
/home/frappe/ or /home/yourusername/
and run bench update command inside frappe-bench folder
bench update will update your app no matter in production or development