$ bower install jquery
$ bower install git://github.com/components/jquery.git
{
"name": "myProject",
"version": "1.0.0",
"dependencies": { "jquery": "~1.7.2" }
}
git: command not found
apt-get install git-core
git clone git://git@repo.git
$ ssh-add ~/.ssh/id_rsa
$ ssh -A username@example.com
(username@example.com):$ git clone git://git@repo.git
$ mkvirtualenv my_env
(my_env) $ python ...
(my_env) $ workon other_env
(other_env) $ workon other_env
(other_env) $ rmvirtualenv my_env
$ mkvirtualenv project_name
$ pip install -r reqirements.txt
apt-get install libmysqlclient-dev python-dev libxml2-dev \
libxslt1-dev libjpeg libjpeg-dev zlib1g-dev \
libfreetype6-dev libfreetype6
apt-get install mysqldb-python python-imaging python-lxml
$ ./manage.py syncdb
mysql -u root -p
CREATE DATABASE marten CHARACTER SET utf8 COLLATE utf8_bin; GRANT ALL PRIVILEGES ON marten.* to 'root'@'localhost' identified by '';
./manage.py sqlcreate -R default | mysql -u root -p
./manage.py run
$ vagrant box add base http://files.vagrantup.com/lucid32.box
$ vagrant init
$ vagrant up
$ vagrant ssh
from fabtools import require
require.mysql.server(password=env.mysql_password)
require.mysql.user(env.db_user, env.db_password)
require.mysql.database(env.db_name, owner=env.db_user)
require.git.command()
require.git.working_copy(env.git_remote_url, path=env.project_root)
require.deb.packages(env.REQUIRE_PACKAGES)
require.python.virtualenv(env.venv_project_path, system_site_packages=True)
with virtualenv(env.venv_project_path):
require.python.requirements(env.requirements_file)
sudo docker run yurtaev/marten3000
sudo docker run yurtaev/mysql
sudo docker run yurtaev/redis
# Marten3000 # # varsion 0.0.0 FROM crosbymichael/python MAINTAINER Egor Yurtaev "yurtaev.egor@gmail.com"
ADD .config/supervisor.conf /opt/supervisor.conf
ADD . /opt/apps/marten3000
WORKDIR /opt/apps/marten3000
RUN pip install -r requirements.txt
RUN apt-get install -y supervisor python-lxml python-mysqldb
EXPOSE 8000 CMD ["supervisord", "-c", "/opt/supervisor.conf", "-n"]