move server to rakefile and started publish process