I am trying to set up a new project on ruby 2.5.1 and rails 5.2. The bundle is completed successfully but when I try to run any command like rails server, rails db:migrate or any other it gets killed without showing any message. 
I am unable to find any solution, is there any way I can check the logs that why mac is aborting the commands. Moreover, this issue is happening only with this project. all other projects are working fine.