When you nanobox run , it'll drop you into a conosle inside of your apps dev enviornment in the /app directory. This is equivalent of the root of your project.
you can run your rake tasks from right there. You can also drop into a ruby console if you'd like.
sorry, rails console