tachyons / botframework-ruby

Microsoft Bot Framework ruby client
MIT License
39 stars 16 forks source link

How to deploy this bot #29

Closed 7sedam7 closed 6 years ago

7sedam7 commented 7 years ago

Hello,

Can you please provide some help with deploying bot written with this botframework.

Not just run the bot on some server, but connecting it to MS botframework so I can access the bot in chats.

Thanks

tachyons commented 7 years ago

Sorry if I misunderstood your question. You can deploy this in any server. It will connect with Microsoft bot framework as long as app id and secret is provided

7sedam7 commented 7 years ago

It will actually not. I have to add a certificate or something more. But just deploying server as I'm running it locally it does not work.

tachyons commented 7 years ago

Deploying this code as it is in heroku by just changing the end point in BotFramework website worked for me. Can you please check if there is any error messages coming ?

tpberntsen commented 7 years ago

@7sedam7: I've run into that problem as well where you want to expose a server process running locally on your workstation to the greater internet, but only ephemerally, and without the hassle of setting up a web server, configuring firewalls and/or NAT'ing, etc.

For that purpose I'm using ngrok (ngrok.com), which does exactly that and works like a charm for my team and me. You simply start the Rack process and let it background/daemonize (or start another terminal process), and then start the Ngrok process with the right arguments, and you're set. :-)

I hope this helps you on the way.

7sedam7 commented 7 years ago

It seems you all have misunderstood me. I do not have a problem with just deploying a server. My problem is that my deployed thing does not want to connect to an actual chat, I can not seem to use my bot from skype, fb messenger, whatever

I can interact with it through an emulator, but it does not connect to it from an actual messenger.

tachyons commented 7 years ago

You can set those in https://dev.botframework.com dashboard

7sedam7 commented 7 years ago

What are those?

I know how to enable it there, when I deploy a dummy bot with c# .net, it just works, this one i can not get to work from skype/fb messenger/etc

7sedam7 commented 6 years ago

I found out the problem. This rackup runs the tcp, while config on bot framework dashboard wants a https endpoint, besides that all is great :)

tachyons commented 6 years ago

Thanks for the update. Heroku provides https by default, you may have https proxy for other hosting providers.

7sedam7 commented 6 years ago

I mean, to correct my answer. rackup writes up that it's listening on tcp://...... and if I paste that to bot framework dashboard ofc it does not work. tcp is just a protocol of transport layer, and https is technically on session layer, but usually implemented on application layer, so https can in lower layer also use tcp protocol and it usually runs on top of it.

I was just stupid to paste this tcp://... to bot framework dashboard, but I was not sure what do they expect.

Anyway thanks for a nice gem :)