fab.aws.boot
ssh adjective-name.wp-dev.io
sudo su - helios
make build
manage.py migrate
- There is an uppercased boolean in the node store config.
exit helios user, sudo EDITOROFCHOICE /etc/wp/node_store.json. server.locales.ca and server.locales.us, change "canadian_entity: true"
- Everything should now be working, but you're missing product data. The following gets product catalog working on your machine.
cd ~
curl -O -L http://wp-public-software-packages.s3-website-us-west-2.amazonaws.com/ubuntu/python3.5_3.5.1_amd64.deb
sudo dpkg -i python3.5_3.5.1_amd64.deb
sudo ldconfig
sudo su - helios
cd catalog
virtualenv --python=python3.5 venv
source ./venv/bin/activate
pip install ipython
- Enter Postgres CLI
psql
ALTER TYPE product_catalog.attribute_type ADD VALUE IF NOT EXISTS 'json'; ( You will see a Notice about a JSON label)
alter function product_catalog.version_id () STABLE;
\q
python setup.py develop
- exit Helios user
exit
sudo EDITOROFCHOICE /etc/supervisord.conf Add the below to the file, taking care to point postgres to YOUR adhoc
[program:catalog]
command=/opt/wp/app/helios/catalog/venv/bin/product-catalog server --debug
environment=
PRODUCT_CATALOG_PRIMARY_DSN="postgres://[email protected]/helios"
stopasgroup=true
startsecs=3
startretries=1000000
redirect_stderr=true
stderr_logfile=none
stdout_logfile=/var/log/wp/helios/catalog.log
sudo service supervisor restart
- Assume Helios user
sudo su - helios
python -m wp.product_catalog.migration
- Bye Bye Helios user
exit
sudo service supervisor restart
- Cross fingers