set up rail server