Best way to open shoes apps when developing
Learning Shoes here. I am wondering if there is a better way to open shoes apps while keeping the console open. Currently I have to first open the shoes 开发者_如何学Pythonapp, then open the console, then open my app after each minute change I make just to see what errors I get.
I feel like there is an easier way to do this. Thanks!
You can run Shoes from command line, and give it your application as a parameter.
$ <Path_where_you_have_installed_Shoes>/dist/shoes <your_application>
The Shoes binary is in /dist
relative to the installation directory (so you won' find it on PATH automagically)
If you're on *NIX, you can also add a shebang to the beginning of your .rb file:
#! <shoes directory>/dist/shoes
Then executing your script will run it with shoes automatically.
精彩评论