add rails server and split into after_script