Skip to content

Instantly share code, notes, and snippets.

@jsta
Created August 26, 2020 12:23
Show Gist options
  • Save jsta/1842bd02fa64ee632dcc0419d83cff70 to your computer and use it in GitHub Desktop.
Save jsta/1842bd02fa64ee632dcc0419d83cff70 to your computer and use it in GitHub Desktop.
Setup local instance of mediagoblin

mediagoblin setup

Installation

See https://wiki.mediagoblin.org/HackingHowto#How_to_set_up_and_maintain_an_environment_for_hacking_with_virtualenv

Enable search plugin

Add [[indexedsearch]] to mediagoblin.ini

Activate virtualenv and install python plugin with:

source bin/activate
pip install mediagoblin-indexedsearch

Create User

./bin/gmg adduser --username you --email youremail
./bin/gmg makeadmin you

Usage

Add media

#simple
./bin/gmg addmedia you ../../path/to/your_media.png

#complex
./bin/gmg addmedia you awesome_spaceship.png \
    --title "My awesome spaceship" \
    --description "Flying my awesome spaceship, since I'm an awesome pilot" \    
    --tags "spaceships, pilots, awesome" \    

View media

./lazyserver.sh
firefox 127.0.0.1:6543

Links

https://mediagoblin.readthedocs.io/en/stable/index.html

https://mediagoblin.readthedocs.io/en/stable/siteadmin/commandline-upload.html

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