Skip to content
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

TrackCOVID deployment to production #4

Open
mario002e opened this issue Jun 18, 2020 · 1 comment
Open

TrackCOVID deployment to production #4

mario002e opened this issue Jun 18, 2020 · 1 comment

Comments

@mario002e
Copy link

Hi Tyler and the community,

Thank you for developing a solution that suits our needs. I'm deploying it to production for a demo to the management but I'm facing some issues.

Here is the proxy config:

`<VirtualHost *:443>
ServerName trackcovid.example.org
ProxyPreserveHost on
RequestHeader set Host trackcovid.example.org

    ProxyPass /api http://192.168.20.56:8000/api
    #ProxyPass /sockjs-node http://192.168.20.56:8000/sockjs-node
    ProxyPass /admin/login http://192.168.20.56:8000/admin/login
    ProxyPass /admin/logout http://192.168.20.56:8000/admin/logout
    ProxyPass /admin/api http://192.168.20.56:8000/admin/api
    ProxyPass /checkpoint.pdf http://192.168.20.56:8000/checkpoint.pdf
    ProxyPass /checkpoint http://192.168.20.56:8000/checkpoint

    ProxyPassReverse /api http://192.168.20.56:8000/api
    #ProxyPassReverse /sockjs-node http://192.168.20.56:8000/sockjs-node
    ProxyPassReverse /admin/login http://192.168.20.56:8000/admin/login
    ProxyPassReverse /admin/logout http://192.168.20.56:8000/admin/logout
    ProxyPassReverse /admin/api http://192.168.20.56:8000/admin/api
    ProxyPassReverse /checkpointf http://192.168.20.56:8000/checkpoint

    ProxyPass /admin http://192.168.20.56:3001/admin
    ProxyPassReverse /admin http://192.168.20.56:3001/admin


    ProxyPass / http://192.168.20.56:3000/
    ProxyPassReverse / http://192.168.20.56:3000/

    CustomLog /var/log/httpd/proxy-trackcovid_access_log combined
    ErrorLog /var/log/httpd/proxy-trackcovid_error_log

    # SSL part
` However, I'm getting the following error message on the console:

webpackHotDevClient.js:60 WebSocket connection to 'wss://trackcovid.example.org/sockjs-node' failed: Error during WebSocket handshake: Unexpected response code: 404

Also, the PDF is not generated.

Please, am I missing something?

@tyleryasaka
Copy link
Owner

Hi @mario002e , this appears to be a server configuration issue. I don't think I can help with that, but I would recommend using Heroku (you can use the free version for your demo if you don't want to pay). The setup instructions should make it easy to deploy to Heroku. Feel free to email me at [email protected] if you want to discuss further.

tyleryasaka added a commit that referenced this issue Jun 19, 2020
Update checkpoints-example.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants