Step 1 - Environment Setup
Make sure that you have ruby installed on environment, and have SSH access. To your account.
Step 2 - Create Ruby on Rails Environment
- Login to your Hostmonster C-Panel.
- Click Ruby on Rails icon.
- Fill out form with your information
Step 3 - Setup Directory Link
SSH into your account and goto where you would like the base of your app to be in. For example if you have website www.example.com and you want it hosted at www.example.com/myApp
Step 4 - Clean up automatic Rails files.
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.
Step 5 - Setup your .htaccess file
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.
Step 6 - Restart your appRemember this little trick to restart the app. This allows you to restart the Sinatra application without having to restart apache.
I have found the need to ignore a file with out using the .gitignore. In my case its because of a chrome driver that we using for Cucumber and Watir. The office has a standard setup with a certain repository, however on my Mac chrome likes to update. This causes an issue with versioning of the driver. So I wanted to put a new chromedriver in my repository folder but not ignore it from the repository. To do this little trick I can update the index and tell it to assume the file is unchanged.
If you have the need to reverse the tracking of the file.
Run this command to get the .git-completion.bash file downloaded to your home directory.
Add the following code to your .bash_profile which is located in the root of your home directory.
Now when you open up your shell you will be able to use the TAB key for your Git commands.
- ► 2016 ( 13 )
- ▼ 2014 ( 14 )