pushkin config [what]
what
, replacing what
with site
or any of the installed experiments by name. Defaults to all.pushkin install site
pushkin install experiment
pushkin updateDB
pushkin.yaml
) are migrated at the same time to avoid errors with the knex_migrations table. This is automatically run as part of pushkin prep
pushkin prep
pushkin prep
has two optional arguments: --nomigrations
and --help
.pushkin prep --nomigrations
if you do not want to run migrations. If you do this, make sure the database structure has not changed.pushkin start --help
will display help for the command.prep
is a bit convoluted (sorry). It loops through each experiment in the experiments folder (as defined by pushkin.yaml
). For each experiment, it does thie following:pushkin/api/tempPackages
. This package is then added as a local package to pushkin/api/package.json
, which allows them to be called during production.docker-compose.dev.yml
so that docker knows to include it when the website is built.web page
and moves it to pushkin/front-end/tempPackages
. This package is then added as a local package to pushkin/front-end/tempPackages
.pushkin/front-end/src/experiments.js
to list each experiment, along with key information from the experiment’s config file. This will be read by the front end to build the list of experiments to display to potential participants.prep
actually goes through and deletes all old tempPackages, cleans up the package.jsons and docker-compose-dev.yml and empties experiments.js. Thus, to delete an experiment, all you have to do is delete it’s folder from the experiment folder. (Of course, that won’t get rid of the docker image for the worker, so you’ll need to clean those up by hand periodically.)pushkin start [options]
pushkin start
has two optional arguments: --nocache
and --help
.pushkin start --nocache
will rebuild all images from scratch without using the cache. By default, this is false.pushkin start --help
will display help for the command.pushkin stop
pushkin kill
pushkin armageddon
pushkin help [command]
pushkin help prep
to learn about the prep command and its options). Defaults to a list of all commands and general information about each if no command specified.