Closed berTrAM888 closed 6 years ago
I'm also struggling with accessing the app inside a browser. I tried to access the IP of my docker machine, as described in https://github.com/mcpa-stlouis/hack-the-arch/blob/dev/DOCKER_README.md, but this doesn't seem to work...
Can someone provide clearer/more precise instructions for this? Thank you in advance!
So pardon my stupid question, but how are you running Docker? The compose file will map the ports you need to the host running the Docker engine. Docker machine != Docker container. If you’re running the engine natively, then you can browse to localhost.
Does that make sense? On Tue, Nov 21, 2017 at 05:21 Stela Kucek notifications@github.com wrote:
I'm also struggling with accessing the app inside a browser. I tried to access the IP of my docker machine, as described in https://github.com/mcpa-stlouis/hack-the-arch/blob/dev/DOCKER_README.md, but this doesn't seem to work...
Can someone provide clearer/more precise instructions for this? Thank you in advance!
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mcpa-stlouis/hack-the-arch/issues/35#issuecomment-345981909, or mute the thread https://github.com/notifications/unsubscribe-auth/AIb5B1vqSjBzkb3YoEwYRo-g9HfNdL1cks5s4qQvgaJpZM4QRc9r .
To answer the original question, running HTA over http is not recommended/supported since passwords are transmitted. Https, is the recommended way, and if you start puma the way the compose file is written, then you should have no problem.
@paullj1 Thank you for answering. I'm sorry, but I've read your instructions numerous times now, and still can't help but feeling that there are some guidelines missing. Important to note here: I'm not a pro, so my issues might not seem reasonable or worthwhile to you. Nevertheless, I would really like to successfully configure and test your platform. So, here is what I (didn't) understand following your Getting Started section:
This app is presently designed to be deployed in a heroku environment
?
bundle exec rake db:seed
? Are there other commands necessary to get this thing running? What are the credentials admin@gmail.com : password
for?It would be nice to have more detailed instructions on the initial configuration process. Maybe not every single command but at least a full (up-to-date) list of requirements and a list of necessary steps.
Thanks in advance!
@veryredheaded, I'll do my best to answer some of your questions. Before I start though, it might be worth mentioning that my instructions do assume a bit of background in rails development. In other words, I assumed that anyone who might be trying to deploy a rails web app would have some experience doing so. That said, the reason I created the docker container and deployment option was for those without that experience. I'd strongly suggest pursuing that option though you might have to checkout the dev branch and follow the DOCKER_README instructions.
bundle exec rails server
. That, by default, will launch the app in dev mode and is not recommended for production use. For more advanced production deployments... again, please read about rails apps.I'm sorry that probably wasn't the step-by-step directions you were looking for. My base level assumption when writing this app was basic understanding of the rails platform. That said, if you are interested in learning rails, there's a fantastic guide for free on the internet here: http://railstutorial.org/. Otherwise, please use the docker deployment option.
I hope this helps.
@paullj1 thank you so much for the detailed answer. I will definitely look into rails apps for better understanding.
Since I have no experience with it, I have tried the docker option first, but didn't know how to actually access HTA via browser. That was my main problem. But I will try to do it again, with the dev branch this time...
Thanks for your efforts and sorry for all the stupid questions :/
Accessing it will be your docker host's IP (depends on how you're running the docker engine). If you're running it in an Ubuntu VM natively, you should be able to access it at: https://UBUNTU_VM_IP/
On Wed, Nov 22, 2017 at 7:27 AM Stela Kucek notifications@github.com wrote:
@paullj1 https://github.com/paullj1 thank you so much for the detailed answer. I will definitely look into rails apps for better understanding.
Since I have no experience with it, I have tried the docker option first, but didn't know how to actually access HTA via browser. That was my main problem. But I will try to do it again, with the dev branch this time...
Thanks for your efforts and sorry for all the stupid questions :/
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/mcpa-stlouis/hack-the-arch/issues/35#issuecomment-346336160, or mute the thread https://github.com/notifications/unsubscribe-auth/AIb5B5aXJAuIdjBDYwWj965TwORfk9Reks5s5BNAgaJpZM4QRc9r .
@paullj1 Thank you so much! It finally works :)
Great to hear! On Wed, Nov 22, 2017 at 08:01 Stela Kucek notifications@github.com wrote:
@paullj1 https://github.com/paullj1 Thank you so much! It finally works :)
[image: hta_screenshot] https://user-images.githubusercontent.com/18488581/33128680-8a24f9e8-cf8d-11e7-8b94-8d65ac9355a9.png
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/mcpa-stlouis/hack-the-arch/issues/35#issuecomment-346343605, or mute the thread https://github.com/notifications/unsubscribe-auth/AIb5B9zHLnXVVfNX9eGHqM4F9DBJQzI-ks5s5BsfgaJpZM4QRc9r .
how can I run it on http?