Removed weird dir creation
Pass rails environment when executing eye