Commandline with multiple bench

I want to work with multiple benchs in the same env, so I created a new bench named bench-dev, but when I run bench new-site command, it’s created inside frappe-bench/sites and not in bench-dev/sites.

I’m running the command inside bench-dev folder.

Did you copy the frappe-bench folder to create the new bench, or did you use bench init bench-dev?

1 Like

I run bench init bench-dev.

The correct command is:

bench init bench-dev

Also note that the directory bench-dev will be created in the directory where this command is executed automatically. So you might want to delete the existing one.

Sure, I typed wrong, the directory was created as well how I said before…
I did a test now, run bench mysql on /home/ubuntu path and the commandline worked, so I suppose bench
commands is configured to default path home/ubuntu/frappe-bench.

ubuntu@ip-172-31-26-36:~$ pwd
ubuntu@ip-172-31-26-36:~$ bench mysql
/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/cryptography/hazmat/primitives/ CryptographyDeprecationWarning: Support for your Python version is deprecated. The next version of cryptography will remove support. Please upgrade to a 2.7.x release that supports hmac.compare_digest as soon as possible.
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 1381
Server version: 10.0.22-MariaDB-1~trusty-log binary distribution

Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [b0a550ea1ae03d90]>