commit 6ab2709cc4c57efa98d9b4abc6fc46e7484456a0 Author: Sybren A. Stüvel Date: Fri Jul 29 16:29:51 2016 +0200 Initial checkin of Blender Cloud Server. diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..840b937 --- /dev/null +++ b/.gitignore @@ -0,0 +1,14 @@ +.DS_Store +.project +.coverage +*.pyc +__pycache__ + +config_local.py + +/build +/.cache +/*.egg-info/ +/.eggs/ +/dump/ +/google_app*.json diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..41fbe44 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,13 @@ +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License along +with this program; if not, write to the Free Software Foundation, Inc., +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. diff --git a/cloud-manage.py b/cloud-manage.py new file mode 100755 index 0000000..02324ad --- /dev/null +++ b/cloud-manage.py @@ -0,0 +1,7 @@ +#!/usr/bin/env python + +from pillar_server import cli +from cloud import app + +cli.manager.app = app +cli.manager.run() diff --git a/cloud.py b/cloud.py new file mode 100755 index 0000000..39b3ab9 --- /dev/null +++ b/cloud.py @@ -0,0 +1,9 @@ +#!/usr/bin/env python + +from pillar_server import PillarServer + +app = PillarServer('.') +app.process_extensions() + +if __name__ == '__main__': + app.run('::0', 5000, debug=True) diff --git a/runserver.wsgi b/runserver.wsgi new file mode 100644 index 0000000..d633875 --- /dev/null +++ b/runserver.wsgi @@ -0,0 +1,15 @@ +from os.path import abspath, dirname +import sys +from pillar_server import PillarServer + +activate_this = '/data/venv/bin/activate_this.py' +execfile(activate_this, dict(__file__=activate_this)) +from flup.server.fcgi import WSGIServer + +sys.path.append('/data/git/blender-cloud/bcloud-server/') + +application = PillarServer(dirname(abspath(__file__))) +application.process_extensions() + +if __name__ == '__main__': + WSGIServer(application).run()