restore deploy rb file