justdjango / justchat

A chat application built with Django channels.
267 stars 237 forks source link

Can not access the chat page.... #1

Closed saracura closed 5 years ago

saracura commented 5 years ago

Can not access the chat page....whenever I get git clone I can not access the chat only the Django Rest Framework page and not the chat itself.

saracura commented 5 years ago

I can see I have no static files to all the js files...

TeplrGuy commented 5 years ago

try run python manage.py collectstatic

justdjango commented 5 years ago

@saracura is your issue resolved?

saracura commented 5 years ago

Nota yet. It seems the problem has something to do with the parcel server. It installed but the server does not run. My server is hosted at Digital Ocean. The command line appears to run but whenever I list the processes I do not see It and if I scan the IP the port also does not show. If you have any clue. Thanks for the concern. Kind regards.

Em Dom, 25 de nov de 2018 03:17, JustDjango <notifications@github.com escreveu:

@saracura https://github.com/saracura is your issue resolved?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/justdjango/justchat/issues/1#issuecomment-441416222, or mute the thread https://github.com/notifications/unsubscribe-auth/AeWHlfKOcsQAf44BkKIm6iW59rSiMhssks5uyifhgaJpZM4Yw76j .

mattfreire commented 5 years ago

You shouldn't be trying to run a parcel server on digital ocean. You must build the frontend and use those as the static files for your django project. Then you can serve your django project with the build react frontend.

saracura commented 5 years ago

Thanks for the help so far. Found out my digitalocean nodejs version was to old(so I updated to latest), then for some reason it keeps trying to call parcel as below:

cd frontend/ (chatCompleto) root@django-digio:/home/django/python3/projetos/chatCompleto/justchat/frontend# ls index.html node_modules package.json package-lock.json src (chatCompleto) root@django-digio:/home/django/python3/projetos/chatCompleto/justchat/frontend# npm start

frontend@1.0.0 start /home/django/python3/projetos/chatCompleto/justchat/frontend parcel index.html

Server running at http://localhost:1234 ⚠️ Could not load existing sourcemap of "src/node_modules/mutationobserver-shim/dist/mutationobserver.min.js". ⠹ Building hmr-runtime.js...Killed npm ERR! code ELIFECYCLE npm ERR! errno 137 npm ERR! frontend@1.0.0 start: parcel index.html npm ERR! Exit status 137 npm ERR! npm ERR! Failed at the frontend@1.0.0 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2018-11-30T15_39_47_475Z-debug.log