Commits

jaux  committed d4b9deb

Added skypieamc_uwsgi.py to configure uWSGI

  • Participants
  • Parent commits 32fd515

Comments (0)

Files changed (2)

File skypieamc/controllers/file.py

         mfile.name = ifile.filename
         mfile.safename = safename
         mfile.size = os.stat(pfile_path).st_size
-        mfile.tags = form_result['tags']
+        if form_result['tags']:
+            mfile.tags = form_result['tags']
         meta.Session.add(mfile)
         meta.Session.commit()
 

File skypieamc_uwsgi.py

+from paste.deploy import loadapp
+
+application = loadapp('config:/home/ye/workspace/www/SkypieaMC/development.ini')
+
+import uwsgi
+uwsgi.applications = {'/': application}