Syncs and restarts a rails server