Adding the command mynode run to the end of ~/.profile should do the trick (where ~ represents your home directory).
mynode run
~/.profile
~
This will run whenever the user with the updated .profile logs-in.
.profile
Look here for more details.