/app/entrypoint.sh: eval: line 3: syntax error near unexpected token `('

Hi, I tried converting my app from heroku via Heroku · Launch on Fly.io and got the following errors:

ord [info] Starting init (commit: xxxx)...
ord [info] Preparing to run: `/bin/bash /app/entrypoint.sh gunicorn app:create_app(config_mode='Custom') -w 3 -k gevent` as heroku
ord [info] 2022/06/30 16:03:33 listening on [xxxx]:22 (DNS: xxxx)
ord [info] /app/entrypoint.sh: eval: line 3: syntax error near unexpected token `('
ord [info] /app/entrypoint.sh: eval: line 3: `exec gunicorn app:create_app(config_mode='Custom') -w 3 -k gevent'
ord [info] Main child exited normally with code: 2
ord [info] Starting clean up. 

I don’t know anything about this specific setup but you might try wrapping that argument in single quotes and changing the inner quotes to double, like this: gunicorn 'app:create_app(config_mode="Custom")' -w 3 -k gevent wherever that line is. My setup usually used a Procfile.

1 Like