Skip to content
This repository has been archived by the owner on Nov 21, 2018. It is now read-only.

An example using Heroku/WSGI/ReportLab to generate a simple Shot report as a Shotgun ActionMenuItem.

Notifications You must be signed in to change notification settings

robblau/shotgun-heroku-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is an example app to talk back to a shotgun server from a Heroku web dyno. The resulting app can be used as the target of a Shotgun ActionMenuItem on Shots. When you select some shots and launch the ActionMenuItem, the app will generate a zip file containing a set of simple pdf reports for the shots.

Quick Install

Follow the instructions to setup a dev environment for Heroku here: https://devcenter.heroku.com/articles/python

The short version

# Setup a Heroku account at https://www.heroku.com/
# Install the Heroku Toolbelf from https://toolbelt.heroku.com/

# Setup dependencies
cd $CLONED_GIT_DIRECTORY
heroku login
virtualenv venv --distribute
source venv/bin/activate
pip install -r requirements.txt

# Deploy the app
heroku create
git push heroku master

# Start up a Heroku dyno
heroku ps:scale web=1

# Setup config needed to connect to your Shotgun
# Full details at https://devcenter.heroku.com/articles/config-vars
heroku plugins:install git://github.com/ddollar/heroku-config.git
cp dot.env.sample .env
vi .env
heroku config:push

# Test out that you can hit up the app (this is a good way to get the target url)
heroku open

# Add the Shotgun action menu item by following the instructions at
# https://support.shotgunsoftware.com/entries/110709-How-to-create-custom-menu-items-for-integration-with-other-pipeline-tools

# Tail the logs and hit it up from the Shotgun ActionMenuItem
heroku logs -t

About

An example using Heroku/WSGI/ReportLab to generate a simple Shot report as a Shotgun ActionMenuItem.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages