This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Check rails version | |
$ rails -v | |
- To update rails | |
$ gem update rails | |
- Creating a new rails app using postgresql | |
$ mkdir rails_projects | |
$ cd rails_projects | |
$ rails new myapp --database=postgresql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Instructions | |
------------------- | |
- Go to Amazon Web Services (http://aws.amazon.com/) and create an account | |
- Launch the AWS management console (https://console.aws.amazon.com/console/home?#) | |
- Select EC2 | |
- Make sure to select N. California as your region setting (top right corner) | |
- Create a new EC2 instance | |
- Select Amazon Linux as the operating system | |
- Use defaults for everything else | |
- Create a private key (e.g. "crucible") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install openssl to avoid getting an openssl error while creating a new app | |
# Check out http://goo.gl/HapK4 for more details | |
$ rvm pkg install openssl | |
$ rvm pkg install iconv | |
# Install ruby 2.0 using rvm | |
$ rvm install ruby-2.0.0-p195 -C --with-openssl-dir=$HOME/.rvm/usr,--with-iconv-dir=$HOME/.rvm/usr | |
# Set ruby 2.0 as default | |
$ rvm use ruby-2.0.0-p195 --default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Move the font files into assets > font | |
Move the CSS files into assets > stylesheets | |
Edit stylesheet references to font files -> Delete .../font/ from all urls in font-awesome stylesheets | |
Add the following line to config > application.rb | |
# Add app/assets/fonts to the asset path | |
config.assets.paths << Rails.root.join("app", "assets", "fonts") | |
Add the following line to bootstrap_overrides.css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Creating an rails app with Postgres | |
$ rails new app --database=postgresql | |
Creating a user | |
$ createuser rails_dev | |
Creating a database | |
$ createdb -Orails_dev -Eunicode sager_app_development |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Adding an existing database | |
$ git remote add heroku [email protected]:repository.git | |
Deploying to heroku | |
$ git push heroku local-branch:master | |
Resetting the database | |
$ heroku run rake db:drop | |
$ heroku run rake db:create | |
$ heroku run rake db:migrate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Navigate to Guacamole web app directory | |
$ cd guacamole | |
Build using maven | |
$ mvn package | |
Deploying the application | |
--------------------------- | |
Copy the guacamole app into the tomcat webapps folder | |
$ sudo cp target/guacamole-0.7.1.war /var/lib/tomcat6/webapps/guacamole.war |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Installing dependencies | |
---------------------------- | |
The following steps need to be performed only once in order to install dependencies: | |
Cairo is a 2D graphics library with support for multiple output devices. | |
$ sudo apt-get install libcairo2-dev | |
libtool | |
$ sudo apt-get install libtool | |
automake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The guacamole source files can be found on sourceforge. To create a fork on github, follow these steps: | |
Clone the git repository | |
$ git clone git://guacamole.git.sourceforge.net/gitroot/guacamole/libguac-client-vnc | |
Navigate to the directory | |
$ cd libguac-client-vnc | |
Create a new repository on github. After creating the repository, go to the Settings > collaborators | |
and add yourself (and other contributors) to the collaborators list. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git branch -a | |
→ Displays all branches (including remote branches) | |
git checkout -b [local-branch] origin/[remote-branch] | |
→ Create a new local-branch (e.g. test-remote) based on remote branch (e.g develop) | |
git fetch | |
→ Fetch code from remote | |
git merge origin/[remote-branch] |