find / -type f -name *.log
Reference: How to find file
Friday, May 30, 2014
Tuesday, May 27, 2014
Upgrading Ruby to 2.1.2 with Moonshine
I was able to upgrade Ruby to 2.1.2. Since I am using Rails 3, I upgraded Moonshine by running:
I am retaining the old generated files.
script/rails plugin install git://github.com/railsmachine/moonshine.git --force I did not run
script/rails generate moonshine
I am retaining the old generated files.
WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.7.6
I had to run:
sudo gem install nokogiri -- --with-xml2-include=/usr/include/libxml2 --with-xml2-lib=/usr/lib --with-xslt-include=/usr/include/libxslt --with-xslt-lib=/usr/lib
on the server from the directory:
/usr/lib/ruby/gems/2.1.0/gems
Note: This server is managed by Moonshine. I could not get rid of this warning any other way.
Reference:
How to fix Nokogiri on Ubuntu
Getting mate command to work on Mavericks
After trying different suggestions from superuser.com on how to setup the shortcut, I had to define an alias in ~/.bash_profile as a workaround:
alias mate='/Applications/TextMate.app/Contents/Resources/mate '
alias mate='/Applications/TextMate.app/Contents/Resources/mate '
Monday, May 26, 2014
Migrating from Github to Bitbucket
1. git remote show origin or git config --get remote.origin.url
2. git remote add origin ssh://git@bitbucket.org/your-user-id/your-project.git
3. Add the ssh key of the server to bitbucket SSH keys.
4. Login to the server and from the rails project current directory change the git remote by running the command in step 2.
Since I am using Moonshine, I had to delete the cached-copy folder on the server. Because it points to github and creates problem when cap deploy is run.
2. git remote add origin ssh://git@bitbucket.org/your-user-id/your-project.git
3. Add the ssh key of the server to bitbucket SSH keys.
4. Login to the server and from the rails project current directory change the git remote by running the command in step 2.
Since I am using Moonshine, I had to delete the cached-copy folder on the server. Because it points to github and creates problem when cap deploy is run.
Subscribe to:
Posts (Atom)