Skip to content

Instantly share code, notes, and snippets.

@andrewfritz86
Last active June 3, 2016 14:25
Show Gist options
  • Save andrewfritz86/9d49e9ef98703f87bda98b4696765926 to your computer and use it in GitHub Desktop.
Save andrewfritz86/9d49e9ef98703f87bda98b4696765926 to your computer and use it in GitHub Desktop.
Adhoc guide
  1. fab.aws.boot
  2. ssh adjective-name.wp-dev.io
  3. sudo su - helios
  4. make build
  5. manage.py migrate
  6. 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"
  7. Everything should now be working, but you're missing product data. The following gets product catalog working on your machine.
  8. cd ~
  9. curl -O -L http://wp-public-software-packages.s3-website-us-west-2.amazonaws.com/ubuntu/python3.5_3.5.1_amd64.deb
  10. sudo dpkg -i python3.5_3.5.1_amd64.deb
  11. sudo ldconfig
  12. sudo su - helios
  13. cd catalog
  14. virtualenv --python=python3.5 venv
  15. source ./venv/bin/activate
  16. pip install ipython
  17. Enter Postgres CLI psql
  18. ALTER TYPE product_catalog.attribute_type ADD VALUE IF NOT EXISTS 'json'; ( You will see a Notice about a JSON label)
  19. alter function product_catalog.version_id () STABLE;
  20. \q
  21. python setup.py develop
  22. exit Helios user exit
  23. 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
  1. sudo service supervisor restart
  2. Assume Helios user sudo su - helios
  3. python -m wp.product_catalog.migration
  4. Bye Bye Helios user exit
  5. sudo service supervisor restart
  6. Cross fingers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment