Skip to content

Instantly share code, notes, and snippets.

@almet
Created March 22, 2016 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save almet/bc0b91bd384b62564d86 to your computer and use it in GitHub Desktop.
Save almet/bc0b91bd384b62564d86 to your computer and use it in GitHub Desktop.
Kinto bundled apps
kinto.includes = kinto.plugins.default_bucket kinto_attachment
kinto.attachment.base_url = http://localhost:8000
kinto.attachment.folder = files/{bucket_id}/{collection_id}/
kinto.attachment.keep_old_files = false
kinto.attachment.base_path = /tmp
# Pre-requesite is to have the last version of kinto-attachment running (see the attached config)
# First, go in the "kinto.js" repository, and be sure to have kinto-attachment installed.
# Then:
$ ../kinto-attachment/.venv/bin/python ../kinto-attachment/scripts/upload.py -s http://0.0.0.0:8888 \
-b tasks -c tasksapp -a token:alexis --unrandomize demo/*
# Go in /tmp and run:
$ python -m SimpleHTTPServer
# That should work!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment