added option to run dev from .sh and export environment variables