Hi @minhajuddin. I host my sites with different hosts. If fire up a new server it’s usually with digitalcoean or joyent but I have a bunch of sites with cache fly, their CDN is crazy fast but if you use them you need to know how to upload with rsync. I would suggest looking into middleman deploy for uploading to the server. Here’s a example configuration using the deploy gem:
activate :deploy do |deploy|
deploy.method = :rsync
deploy.host = "example.com"
deploy.path = "/srv/www/example.com/public"
deploy.user = "username"
deploy.clean = "true"
end
If you don’t want to keep some of that info in your config file just create a .env file in the root with all your environment variables and then import it in you config by add this line to the top:
ENV = YAML::load(File.open('.env.yml'))
and you would define environment variables like:
HOST: "example.com"