Developer mode to Production mode

I tried sudo bench setup production, but the following error came -

Usage: bench setup production [OPTIONS] USER
Error: Missing argument "user".

After that, I tried bench setup supervisor and bench setup nginx.
Those command executed successfully, but when I went to my AWS server public IPv4, I got an error 500.

Hi!
The error is pretty self explanatory, you must pass a unix user as an argument in the command, eg: bench setup production erpuser.

The user on my Ubuntu machine is called ubuntu.

Do I run bench setup production ubuntu?

Yes, try with bench setup production ubuntu

After I do bench setup production ubuntu and go to the IP address on a browser, I get Error 500:Internal Server Error