Running mongodb in Mac OS 10.10.3 can give that warning. If this warning is ignored, it will lead to problems. In the same terminal,run :
$ulimit -n 1024
$ mongod --config /usr/local/etc/mongod.conf
export DISABLE_SPRING=1
You will now be able to go to rails console. You may also have to kill any stray rails
console processes that may be running but never succeeded.
To remove it :
bin/spring binstub --remove --all
Deploying a Rails Webapp on GAE should be a piece of cake right? Due to lack of good documentation, it is not that easy. I had to dig around to find the versions of the software installed for Ruby Stack One-Click Deploy.
Here is some useful information to access installed software components.
Apache web server: Configuration directory: /etc/apache2 Default website directory: /var/www Command to start Apache web server: sudo service apache2 start Command to stop Apache web server: sudo service apache2 stop Passenger: Help command: passenger --help Install directory: /usr/local/rvm/gems/ruby-2.1.1/gems/passenger-4.0.48 MySQL: Command to access MySQL: mysql -u root -p Command to start MySQL service: sudo service mysql start Command to stop MySQL service: sudo service mysql stop RVM, Ruby and Rails: RVM Help command: rvm Rails help command: rails -h RVM install directory: /usr/local/rvm Ruby install directory: /usr/local/rvm/src/ruby-2.1.1 Rails install directory: /usr/local/rvm/gems/ruby-2.1.1/gems/rails-4.1.4 Git: Help command: git --help
brew search elasticsearch
sudo apt-get remove nodejs
recipe :nodejs
to the application_manifest.rb
This will fail gloriously.
Install it by:
apt-get install python-software-properties
apt-add-repository ppa:chris-lea/node.js
apt-get update
apt-get install nodejs
node -v
should show :v0.10.20
Reference : NodeJS installation on Ubuntu 12.04
script/rails plugin install git://github.com/railsmachine/moonshine.git --force I did not run
script/rails generate moonshine
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