-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can you please help me on how to run it on heroku? #40
Comments
+1 |
Thank you for reply! Should I add another dyno specific for the chat app? Thank you very much in advance |
You want to test the application on heroku? |
So please correct me if I'm wrong: you are saying that the chat should work on Heroku without any further configurations? My main app including chat are deployed on Heroku, all migrations are run, but the chat doesn't work for some reasons. The messages are not getting sent, whereas locally it works fine. |
You'll need to add configurations required for chat app. |
I have a similar problem. Everything works on the local server, but no messages are sent to Heroku. |
I want to host the application on heroku, Everything works as expected on local server, but while deploying on heroku chat server is not working. I am getting the error : |
I'm experiencing the same issue as @bilalzahoor. Has anyone been able to resolve this? |
I was able to get an application with django-private-chat running on Heroku. The key was to run the chat service as a separate Heroku web app. I deployed two versions of the application to separate Heroku apps, only changing the Procfile. Here are what each Procfile looks like
The settings I used were:
In addition, I modified the Let me know if you have any questions. |
[email protected]:3354 WebSocket connection to 'wss://0.0.0.0:5002/dq4rjlg08bvt1adsdb8gwuk0ct05mmgn/[email protected]' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED CHAT_WS_SERVER_HOST = '0.0.0.0' in production server :/ i have my ip but doesn't work my demon is this [Unit] Description=El Trabajo Deseado Chat After=network.target [Service] User=ubuntu Group=www-data WorkingDirectory=/home/ubuntu/etd/eltrabajodeseado ExecStart=/home/ubuntu/etd-env/bin/python /home/ubuntu/etd/eltrabajodeseado/manage.py run_chat_server [Install] WantedBy=multi-user.target somebody can help me please |
@MattBrown88 |
Hey - I can try to help but you’ll have to send me the error message. To
get this, look in the Heroku log files.
I need more information :)
On Wed, Apr 28, 2021 at 1:53 PM Atiya Rabbi ***@***.***> wrote:
@MattBrown88 <https://github.com/MattBrown88>
I created two versions of the same Django app and pushed on heroku but it
is still showing me application error.
I added the Procfile and updated settings.py in both versions.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#40 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEXMPLPJGAFTCLLPQWRHO3TTLBKQ7ANCNFSM4HJSSEZA>
.
--
Matt Brown
Freelance Software Developer
www.MatthewLBrown.com <https://MatthewLBrown.com>, LinkedIn
<https://www.linkedin.com/in/matthew-brown-44b91017/>
|
Please check out https://github.com/Bearle/django_private_chat2 |
@MattBrown88 This is what I did
|
@delneg |
That means that you haven’t successfully installed django-private-chat on
Heroku
On Wed, Apr 28, 2021 at 6:04 PM Atiya Rabbi ***@***.***> wrote:
@delneg <https://github.com/delneg>
Is django-private-chat2 similar in application as django-private-chat?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#40 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEXMPLLPZOQ647JZ2TGQACDTLCH7JANCNFSM4HJSSEZA>
.
--
Matt Brown
Freelance Software Developer
www.MatthewLBrown.com <https://MatthewLBrown.com>, LinkedIn
<https://www.linkedin.com/in/matthew-brown-44b91017/>
|
Okay @MattBrown88 , so I added django-private-chat==0.3.0 in requirements.txt now the app is running on Heroku but in the console of my browser it tells me that the WebSocket connection is failed: It means that WebSocket is in a closed state. I even tried to restart the heroku server, still, I am unable to establish a connection to send and receive messages. Will you please help me out here? |
Want to run it on heroku or any other server with the main django application. Please help me on this.
The text was updated successfully, but these errors were encountered: