Skip to content

Instantly share code, notes, and snippets.

@nlhkabu
Last active April 8, 2019 23:31
Show Gist options
  • Save nlhkabu/62b0fce871ea895667b0ba3611cd25a7 to your computer and use it in GitHub Desktop.
Save nlhkabu/62b0fce871ea895667b0ba3611cd25a7 to your computer and use it in GitHub Desktop.
Nicole's PeopleAsk Env CheatSheet

LXC

List all containers:

sudo lxc-ls -f

Stop peopleask container:

sudo lxc-stop -n peopleask

Start peopleask container:

sudo lxc-start -d -n peopleask

Need to update something?

To enter the container: ssh [email protected], then su nova

To update the project (from inside the container): make update

Run runserver (from inside container)

django-admin runserver 0.0.0.0:<port>

Accessing the app

Admin URL:

http://peopleask.lxc:<port>/np_admin/

Troubleshooting

Is dnsmasq running? sudo service dnsmasq start

Ask @kael to help

Updating Ansible

  • make sure you are in the PeopleAsk Project
  • workon ansible-peopleask
  • cd ansible && ./bin/develop.sh

Updating CSS

With your settings:

PIMP_STATIC_ROOT = "../pimpmythemefolders/dist/peopleask"
PIMP_STATIC_URL = "/static_themes/"
PIMP_ARCHIVE_URL = ""
  1. Edit files in /peopleask/_base/css/* in pimpmythemefolders
  2. run npm run build:peopleask-default from pimpmythemefolders
  3. restart the peopleask server

Theme Changing

Make shell
s = PeopleDocSite.objects.get(pk=1)
s.theme_pimp = 'theme-name'
s.save()

Before make collectstatic

export BUILD_CSS_EXTRA_ARGS="-p theme-name"

Committing

./bin/add_changelog_entry PDOCUI-49 enhancement "[Bootzord] make font sizes consistent"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment