run rails application at the end