Run test UI appium and cucumber

Hello, I’m trying to run UI tests using cucumber and appium, unfortunately I’m not getting it.

I followed the following tutorial:

I have two problems, when I run the appium & (in the background) the step did not finish and it is pending. If I put all the steps in the same execution error occurs in the tests:
https://gist.github.com/sidneiweber/ec620190b550f08e14e7919c2545bf7f

Hello there!

Could you try running appium like appium &> /dev/null/ & ?
this way it will not hand, for the logging is “not in the terminal session”