Advertisement
Guest User

Untitled

a guest
Jul 7th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.76 KB | None | 0 0
  1. 2017-07-07T10:27:30.448951+00:00 heroku[web.1]: State changed from crashed to starting
  2. 2017-07-07T10:27:30.436282+00:00 heroku[web.1]: Process exited with status 0
  3. 2017-07-07T10:27:50.846928+00:00 heroku[web.1]: Starting process with command `python3`
  4. 2017-07-07T10:27:53.350381+00:00 heroku[web.1]: Process exited with status 0
  5. 2017-07-07T10:27:53.365013+00:00 heroku[web.1]: State changed from starting to crashed
  6. 2017-07-07T10:27:53.876208+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host= myproject.herokuapp.com request_id=e1f8edfc-7dc4-4bd3-91be-0a853e948452 fwd="109.173.154.199" dyno= connect= service= status=503 bytes= protocol=https
  7. 2017-07-07T10:28:43.444860+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host= myproject.herokuapp.com request_id=361846d1-41cd-403a-989f-4c29a0d1179e fwd="109.173.154.199" dyno= connect= service= status=503 bytes= protocol=https
  8. 2017-07-07T10:28:43.984059+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host= myproject.herokuapp.com request_id=658795c8-0ba7-4988-9d39-34601b1334c7 fwd="109.173.154.199" dyno= connect= service= status=503 bytes= protocol=https
  9. 2017-07-07T10:28:44.673789+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host= myproject.herokuapp.com request_id=63fbabdc-7ba7-4997-81be-c601a0d83368 fwd="109.173.154.199" dyno= connect= service= status=503 bytes= protocol=https
  10. 2017-07-07T10:29:53.091547+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host= myproject.herokuapp.com request_id=a3943544-9dc4-44f0-b788-a462cdfba7d0 fwd="109.173.154.199" dyno= connect= service= status=503 bytes= protocol=https
  11. 2017-07-07T10:29:54.419623+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host= myproject.herokuapp.com request_id=eb5191e2-21d9-410c-823e-c57bb0fb7fa4 fwd="109.173.154.199" dyno= connect= service= status=503 bytes= protocol=https
  12.  
  13. ├── Backend
  14. │ ├── AI
  15. │ │ ├── __init__.py
  16. │ │ ├── __pycache__
  17. │ │ │ ├── __init__.cpython-36.pyc
  18. │ │ │ ├── settings.cpython-36.pyc
  19. │ │ │ ├── urls.cpython-36.pyc
  20. │ │ │ └── wsgi.cpython-36.pyc
  21. │ │ ├── settings.py
  22. │ │ ├── urls.py
  23. │ │ └── wsgi.py
  24. │ └── manage.py
  25. ├── Dockerfile
  26. ├── init.sql
  27. ├── Frontend
  28. │ └── angularProject
  29. ├── Dockerfile
  30. │ └── all files in my angular project
  31. ├── docker-compose.yml
  32. └── requirements.txt
  33.  
  34. # Create image based on the official Node 6 image from dockerhub
  35. FROM node:6
  36.  
  37. # Create a directory where our app will be placed
  38. RUN mkdir -p /usr/src/app
  39.  
  40. # Change directory so that our commands run inside this new directory
  41. WORKDIR /usr/src/app
  42.  
  43. # Copy dependency definitions
  44. COPY package.json /usr/src/app
  45.  
  46. # Install dependecies
  47. RUN npm install
  48.  
  49. # Get all the code needed to run the app
  50. COPY . /usr/src/app
  51.  
  52. # Expose the port the app runs in
  53. EXPOSE 4200
  54.  
  55. # Serve the app
  56. CMD ["npm", "start"]
  57.  
  58. FROM python:3.6.1
  59. ENV PYTHONUNBUFFERED 1
  60. RUN mkdir /code
  61. WORKDIR /code
  62. ADD requirements.txt /code/
  63. RUN pip3 install -r requirements.txt
  64. ADD . /code/
  65.  
  66. version: '3'
  67.  
  68. services:
  69. db:
  70. image: postgres
  71. environment:
  72. POSTGRES_USER: aso
  73. POSTGRES_PASSWORD: somepass
  74. django:
  75. build: .
  76. command: python3 MainDirectory/backend/myProject/manage.py runserver 0.0.0.0:8001
  77. volumes:
  78. - .:/code
  79. ports:
  80. - "8001:8001"
  81. depends_on:
  82. - db
  83. angular:
  84. build: MainDirectory/frontend
  85. ports:
  86. - "4200:4200"
  87. depends_on:
  88. - django
  89.  
  90. CREATE USER myUser;
  91. CREATE DATABASE myProject;
  92. GRANT ALL PRIVILEGES ON DATABASE myProject TO myUser;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement