- ubuntu 11.10
- python 2.7
- Increase your apt-cache size:
sudo vi /etc/apt/apt.conf.d/70debconf
then add this line:
APT::Cache-Limit "100000000";
- Make sure your user can sudo without password:
sudo visudo
Make sure you have this line:
%admin ALL=(ALL) NOPASSWD:ALL
Save the file, exit vi.
Make sure your user is in the "admin" group:
vagrant adm dialout cdrom plugdev lpadmin sambashare admin
mkdir datawinners
cd /tmp/datawinners
git clone https://github.com/mangroveorg/datawinners.git
./init_env_11.10.sh
If you successfully complete this step, you should see the following directories:
- ~/virtual_env
- ~/workspace
You no longer need /tmp/datawinners so let's get rid of that:
rm -rf /tmp/datawinners
You should also see the alias "dw" appended to your ~/.bashrc. Logout, log back in and type "dw". Your prompt should look like:
(datawinner)user@host:~$
./build.sh init
This step sets up some log files, clones more git repos, installs dependencies and runs some tests.
By the end of this step your django server should be listening on port 8000.
If you hit ctrl-c to stop the server, some functional tests would run and fail. TODO: get rid of the functional tests and invoke them separately.
You can now point your browser to http://localhost:8000/
To start the server again in the future:
python manage.py runserver 0.0.0.0:8000