Guest User

Project Structure

a guest
Aug 30th, 2013
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ##################
  2. Project Structure:
  3. ##################
  4. ~/Projects/
  5. site01_repo/
  6. .gitignore
  7. requirements.txt
  8. Procfile
  9. site01/
  10. manage.py
  11. site01/
  12. __init__.py
  13. settings/
  14. urls.py
  15. wsgi.py
  16.  
  17. ~/Envs/
  18. venv01
  19. ...
  20.  
  21. #################
  22. requirements.txt:
  23. #################
  24. Django==1.5.2
  25. dj-database-url==0.2.2
  26. dj-static==0.0.5
  27. django-toolbelt==0.0.1
  28. gunicorn==18.0
  29. psycopg2==2.5.1
  30. static==0.4
  31. wsgiref==0.1.2
  32.  
  33. #########
  34. Procfile:
  35. #########
  36. web: gunicorn site01.wsgi
  37.  
  38. ###########
  39. .gitignore:
  40. ###########
  41. venv01
  42. *.pyc
  43. staticfiles
  44.  
  45. ####################
  46. Heroku command-line:
  47. ####################
  48. (venv01)mac-pol:site01_repo oubiga$ foreman start
  49. 00:26:02 web.1 | started with pid 914
  50. 00:26:02 web.1 | 2013-08-31 00:26:02 [914] [INFO] Starting gunicorn 18.0
  51. 00:26:02 web.1 | 2013-08-31 00:26:02 [914] [INFO] Listening at: http://0.0.0.0:5000 (914)
  52. 00:26:02 web.1 | 2013-08-31 00:26:02 [914] [INFO] Using worker: sync
  53. 00:26:02 web.1 | 2013-08-31 00:26:02 [917] [INFO] Booting worker with pid: 917
  54. 00:26:02 web.1 | 2013-08-31 00:26:02 [917] [ERROR] Exception in worker process:
  55. 00:26:02 web.1 | Traceback (most recent call last):
  56. 00:26:02 web.1 | File "/Users/oubiga/Envs/venv01/lib/python2.7/site-packages/gunicorn/arbiter.py", line 495, in spawn_worker
  57. 00:26:02 web.1 | worker.init_process()
  58. 00:26:02 web.1 | File "/Users/oubiga/Envs/venv01/lib/python2.7/site-packages/gunicorn/workers/base.py", line 106, in init_process
  59. 00:26:02 web.1 | self.wsgi = self.app.wsgi()
  60. 00:26:02 web.1 | File "/Users/oubiga/Envs/venv01/lib/python2.7/site-packages/gunicorn/app/base.py", line 114, in wsgi
  61. 00:26:02 web.1 | self.callable = self.load()
  62. 00:26:02 web.1 | File "/Users/oubiga/Envs/venv01/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 62, in load
  63. 00:26:02 web.1 | return self.load_wsgiapp()
  64. 00:26:02 web.1 | File "/Users/oubiga/Envs/venv01/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 49, in load_wsgiapp
  65. 00:26:02 web.1 | return util.import_app(self.app_uri)
  66. 00:26:02 web.1 | File "/Users/oubiga/Envs/venv01/lib/python2.7/site-packages/gunicorn/util.py", line 354, in import_app
  67. 00:26:02 web.1 | __import__(module)
  68. 00:26:02 web.1 | ImportError: No module named site01.wsgi
  69. 00:26:02 web.1 | Traceback (most recent call last):
  70. 00:26:02 web.1 | File "/Users/oubiga/Envs/venv01/lib/python2.7/site-packages/gunicorn/arbiter.py", line 495, in spawn_worker
  71. 00:26:02 web.1 | worker.init_process()
  72. 00:26:02 web.1 | File "/Users/oubiga/Envs/venv01/lib/python2.7/site-packages/gunicorn/workers/base.py", line 106, in init_process
  73. 00:26:02 web.1 | self.wsgi = self.app.wsgi()
  74. 00:26:02 web.1 | File "/Users/oubiga/Envs/venv01/lib/python2.7/site-packages/gunicorn/app/base.py", line 114, in wsgi
  75. 00:26:02 web.1 | self.callable = self.load()
  76. 00:26:02 web.1 | File "/Users/oubiga/Envs/venv01/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 62, in load
  77. 00:26:02 web.1 | return self.load_wsgiapp()
  78. 00:26:02 web.1 | File "/Users/oubiga/Envs/venv01/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 49, in load_wsgiapp
  79. 00:26:02 web.1 | return util.import_app(self.app_uri)
  80. 00:26:02 web.1 | File "/Users/oubiga/Envs/venv01/lib/python2.7/site-packages/gunicorn/util.py", line 354, in import_app
  81. 00:26:02 web.1 | __import__(module)
  82. 00:26:02 web.1 | ImportError: No module named site01.wsgi
  83. 00:26:02 web.1 | 2013-08-31 00:26:02 [917] [INFO] Worker exiting (pid: 917)
  84. 00:26:02 web.1 | 2013-08-31 00:26:02 [914] [INFO] Shutting down: Master
  85. 00:26:02 web.1 | 2013-08-31 00:26:02 [914] [INFO] Reason: Worker failed to boot.
  86. 00:26:03 web.1 | exited with code 3
  87. 00:26:03 system | sending SIGTERM to all processes
  88. SIGTERM received
Advertisement
Add Comment
Please, Sign In to add comment