Yes, all the sites I created are there, but when I try to access via the localhost (site name:8080) it does not work.
I also can’t seem to load the ERPNext into my site
Installing Frappé Apps onto Sites
$ bench --site <MY_SITE> install-app <MY_APP_NAME>
When I go:
$ bench --site teste2 install-app erpnext
Traceback (most recent call last):
File “/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py”, line 174, in _run_module_as_main
“main”, fname, loader, pkg_name)
File “/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py”, line 72, in _run_code
exec code in run_globals
File “/Users/Carvalho/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 94, in
main()
File “/Users/Carvalho/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/Users/Carvalho/frappe-bench/env/lib/python2.7/site-packages/click/core.py”, line 722, in call
return self.main(*args, **kwargs)
File “/Users/Carvalho/frappe-bench/env/lib/python2.7/site-packages/click/core.py”, line 697, in main
rv = self.invoke(ctx)
File “/Users/Carvalho/frappe-bench/env/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/Users/Carvalho/frappe-bench/env/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/Users/Carvalho/frappe-bench/env/lib/python2.7/site-packages/click/core.py”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/Users/Carvalho/frappe-bench/env/lib/python2.7/site-packages/click/core.py”, line 535, in invoke
return callback(*args, **kwargs)
File “/Users/Carvalho/frappe-bench/env/lib/python2.7/site-packages/click/decorators.py”, line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File “/Users/Carvalho/frappe-bench/apps/frappe/frappe/commands/init.py”, line 24, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/Users/Carvalho/frappe-bench/apps/frappe/frappe/commands/site.py”, line 160, in install_app
_install_app(app, verbose=context.verbose)
File “/Users/Carvalho/frappe-bench/apps/frappe/frappe/installer.py”, line 109, in install_app
frappe.clear_cache()
File “/Users/Carvalho/frappe-bench/apps/frappe/frappe/init.py”, line 512, in clear_cache
for fn in get_hooks(“clear_cache”):
File “/Users/Carvalho/frappe-bench/apps/frappe/frappe/init.py”, line 828, in get_hooks
hooks = _dict(cache().get_value(“app_hooks”, load_app_hooks))
File “/Users/Carvalho/frappe-bench/apps/frappe/frappe/utils/redis_wrapper.py”, line 72, in get_value
val = generator()
File “/Users/Carvalho/frappe-bench/apps/frappe/frappe/init.py”, line 806, in load_app_hooks
for app in [app_name] if app_name else get_installed_apps(sort=True):
File “/Users/Carvalho/frappe-bench/apps/frappe/frappe/init.py”, line 770, in get_installed_apps
installed = json.loads(db.get_global(“installed_apps”) or “”)
File “/Users/Carvalho/frappe-bench/apps/frappe/frappe/database.py”, line 707, in get_global
return self.get_default(key, user)
File “/Users/Carvalho/frappe-bench/apps/frappe/frappe/database.py”, line 719, in get_default
d = self.get_defaults(key, parent)
File “/Users/Carvalho/frappe-bench/apps/frappe/frappe/database.py”, line 725, in get_defaults
defaults = frappe.defaults.get_defaults(parent)
File “/Users/Carvalho/frappe-bench/apps/frappe/frappe/defaults.py”, line 57, in get_defaults
globald = get_defaults_for()
File “/Users/Carvalho/frappe-bench/apps/frappe/frappe/defaults.py”, line 177, in get_defaults_for
where parent = %s order by creation"“”, (parent,), as_dict=1)
File “/Users/Carvalho/frappe-bench/apps/frappe/frappe/database.py”, line 121, in sql
self.connect()
File “/Users/Carvalho/frappe-bench/apps/frappe/frappe/database.py”, line 78, in connect
self.use(self.user)
File “/Users/Carvalho/frappe-bench/apps/frappe/frappe/database.py”, line 83, in use
self._conn.select_db(db_name)
_mysql_exceptions.OperationalError: (1049, “Unknown database ‘96a62ca98bdec7f5’”)