Skip to content

Instantly share code, notes, and snippets.

@Xatpy
Last active August 29, 2015 14:13
Show Gist options
  • Save Xatpy/10688a691bbf9ae860e4 to your computer and use it in GitHub Desktop.
Save Xatpy/10688a691bbf9ae860e4 to your computer and use it in GitHub Desktop.
NOTES developing CartoDB

Update submodule

While we're devoloping CartoDB, we've to update the CartoDB.js version that we're pointing. To do that:

git submodule update


rake db:migrate

Before updating, if there are errors like for example:

NoMethodError in Admin/visualizations#index
Showing /vagrant/app/views/admin/visualizations/index.html.erb where line #6 raised:
super: no superclass method `private_maps_enabled' for #<User:0x00000006d6dfe8>

I have to do (in Rails console):

bundle exec rake db:migrate


# Update extension. Rails have to be running, so before (in another tab): > foreman start -p 3000

Mergear master
git submodule init && git submodule update
cd lib/sql/ && sudo make all install && bundle exec rake cartodb:db:load_functions
cd ../.. && make check

Several vagrant VM machines

  1. Check the VM installed with: VBoxManage list vms
  2. When you execute vagrant up, the selected machine is: `cat .vagrant/machines/default/virtualbox/id``
  3. Change the value inside this file if you want to get up another VM.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment