Advertisement
Guest User

Untitled

a guest
Jul 8th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.14 KB | None | 0 0
  1. 2017-07-08T13:19:48.882112+00:00 heroku[web.1]: Process exited with status 0
  2. 2017-07-08T13:20:40.336825+00:00 heroku[run.9745]: Awaiting client
  3. 2017-07-08T13:20:40.395900+00:00 heroku[run.9745]: Starting process with command `docker-compose up`
  4. 2017-07-08T13:20:40.542168+00:00 heroku[run.9745]: State changed from starting to up
  5. 2017-07-08T13:20:45.727667+00:00 heroku[run.9745]: State changed from up to complete
  6. 2017-07-08T13:20:45.715556+00:00 heroku[run.9745]: Process exited with status 127
  7. 2017-07-08T13:21:39.171330+00:00 heroku[run.8300]: Awaiting client
  8. 2017-07-08T13:21:39.198870+00:00 heroku[run.8300]: Starting process with command `docker-compose up`
  9. 2017-07-08T13:21:39.470489+00:00 heroku[run.8300]: State changed from starting to up
  10. 2017-07-08T13:21:43.381827+00:00 heroku[run.8300]: State changed from up to complete
  11. 2017-07-08T13:21:43.369201+00:00 heroku[run.8300]: Process exited with status 127
  12. 2017-07-08T13:25:26.780464+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=herokupri.herokuapp.com request_id=cb876e32-ca19-467e-85a6-5babab50beab fwd="109.173.154.199" dyno= connect= service= status=503 bytes= protocol=https
  13. Disconnected from log stream. There may be events happening that you do not see here! Attempting to reconnect...
  14. 2017-07-08T13:20:40.336825+00:00 heroku[run.9745]: Awaiting client
  15. 2017-07-08T13:20:40.395900+00:00 heroku[run.9745]: Starting process with command `docker-compose up`
  16. 2017-07-08T13:20:40.542168+00:00 heroku[run.9745]: State changed from starting to up
  17. 2017-07-08T13:20:45.727667+00:00 heroku[run.9745]: State changed from up to complete
  18. 2017-07-08T13:20:45.715556+00:00 heroku[run.9745]: Process exited with status 127
  19. 2017-07-08T13:21:39.171330+00:00 heroku[run.8300]: Awaiting client
  20. 2017-07-08T13:21:39.198870+00:00 heroku[run.8300]: Starting process with command `docker-compose up`
  21. 2017-07-08T13:21:39.470489+00:00 heroku[run.8300]: State changed from starting to up
  22. 2017-07-08T13:21:43.381827+00:00 heroku[run.8300]: State changed from up to complete
  23. 2017-07-08T13:21:43.369201+00:00 heroku[run.8300]: Process exited with status 127
  24. 2017-07-08T13:25:26.780464+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=herokupri.herokuapp.com request_id=cb876e32-ca19-467e-85a6-5babab50beab fwd="109.173.154.199" dyno= connect= service= status=503 bytes= protocol=https
  25.  
  26. ├── Backend
  27. │ ├── AI
  28. │ │ ├── __init__.py
  29. │ │ ├── __pycache__
  30. │ │ │ ├── __init__.cpython-36.pyc
  31. │ │ │ ├── settings.cpython-36.pyc
  32. │ │ │ ├── urls.cpython-36.pyc
  33. │ │ │ └── wsgi.cpython-36.pyc
  34. │ │ ├── settings.py
  35. │ │ ├── urls.py
  36. │ │ └── wsgi.py
  37. │ └── manage.py
  38. ├── Dockerfile
  39. ├── init.sql
  40. ├── Frontend
  41. │ └── angularProject
  42. ├── Dockerfile
  43. │ └── all files in my angular project
  44. ├── docker-compose.yml
  45. └── requirements.txt
  46.  
  47. # Create image based on the official Node 6 image from dockerhub
  48. FROM node:6
  49.  
  50. # Create a directory where our app will be placed
  51. RUN mkdir -p /usr/src/app
  52.  
  53. # Change directory so that our commands run inside this new directory
  54. WORKDIR /usr/src/app
  55.  
  56. # Copy dependency definitions
  57. COPY package.json /usr/src/app
  58.  
  59. # Install dependecies
  60. RUN npm install
  61.  
  62. # Get all the code needed to run the app
  63. COPY . /usr/src/app
  64.  
  65. # Expose the port the app runs in
  66. EXPOSE 4200
  67.  
  68. # Serve the app
  69. CMD ["npm", "start"]
  70.  
  71. FROM python:3.6.1
  72. ENV PYTHONUNBUFFERED 1
  73. RUN mkdir /code
  74. WORKDIR /code
  75. ADD requirements.txt /code/
  76. RUN pip3 install -r requirements.txt
  77. ADD . /code/
  78.  
  79. version: '3'
  80.  
  81. services:
  82. db:
  83. image: postgres
  84. environment:
  85. POSTGRES_USER: aso
  86. POSTGRES_PASSWORD: somepass
  87. django:
  88. build: .
  89. command: python3 MainDirectory/backend/myProject/manage.py runserver 0.0.0.0:8001
  90. volumes:
  91. - .:/code
  92. ports:
  93. - "8001:8001"
  94. depends_on:
  95. - db
  96. angular:
  97. build: MainDirectory/frontend
  98. ports:
  99. - "4200:4200"
  100. depends_on:
  101. - django
  102.  
  103. CREATE USER myUser;
  104. CREATE DATABASE myProject;
  105. GRANT ALL PRIVILEGES ON DATABASE myProject TO myUser;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement