Whales is a friendlier Docker environment for Ruby on Rails.
This means that instead of installing a set of dependencies for your Ruby environment that may conflict with your existing developer tools, Whales will manage them all in isolated containers.
Demos (click screen caps to expand)
Creating a new Whales project
Booting the Whales project
Using Whales once ready
If you don't have Node.js already (can you run node
in your terminal? if so, skip this part), install it here:
https://nodejs.org/dist/v10.15.1/node-v10.15.1.pkg (this link starts a download)
In Terminal:
npm install --production -g @calblueprint/whales
whales new [name]
(this will take a long time on first run!)
cd [name]
whales server
These instructions follow some of the more common failure scenarios for running npm i -g @calblueprint/whales
. If you can run whales
in your Terminal, this does not apply to you!
Some error that includes python
in it
If you're getting an error at this step:
and the error mentions python
, it's possible your default python
is broken or is using v3+ instead of v2.
We can temporarily set your python
install correctly to avoid this issue.
First, verify that /usr/bin/python --version
returns Python 2.x.x instead of Python 3. If it does not, please skip to the next section to install Python 2 with Homebrew.
Use npm config set python /usr/bin/python
to tell npm
that you want to run Python scripts with the system-provided Python instead of your custom install.
**/usr/bin/python
is no longer version 2**
Run brew install python2
to install Python 2 with Homebrew.
Now run npm config set python /usr/local/bin/python2
to tell npm
that you want to run Python scripts with Homebrew-installed Python instead of your current install.
EACCESS
error, somewhere in /usr/local
Run sudo chown -R "$USER":admin /usr/local/lib
!
Did it not work? Try this too:
sudo chown -R "$USER":admin /usr/local/bin