Make sure that you have ruby installed on environment, and have SSH access. To your account.
Once you have cleaned up the directory copy your sinatra files to ~/rails_apps/myApp
If you have a Gemfile this would also be a good time to run a “bundle install” while you are in the directory. If you don’t get your gems loaded you will experience problems.
Open up your .htaccess file for the myApp directory and make it look like this. Make sure that you replace the sections that say “yourAccount” and “myApp” with the appropriate names for your domain and application.
Remember this little trick to restart the app. This allows you to restart the Sinatra application without having to restart apache.