Giter VIP home page Giter VIP logo

Comments (14)

karafra avatar karafra commented on September 2, 2024 1

Oh, okay. I will add that in the next release.

Did you manage to get it set up or do you need help?

from ai-art.

karafra avatar karafra commented on September 2, 2024 1

Oh okay

So for the AMQP:

  • small intro into what it is why I bot needs it

    • AMQP is protocol which enables server to instantly queue messages which then can get picked up by client. This is mostly used for CPU intensive tasks where it is used as acknowledgment for client that processing has started or delivery of small client messages such as in instant messaging apps like Instagram or Facebook messenger. This bot uses AMQP as dynamic job queue because if there is large amount of requests being made to image generation models, then messages get blocked so they don't overload server (DDoS/DoS countermeasure)
  • As for filling this environment varble on heroku I strongly advise for usage of Cloud AMQP which is largest AMQP provider and has excellent uptime. You can log into it with github. Once your account is created, you need to create new amqp instance (free plan will completely suffice) by clicking on this button. Screenshot_20220805-003856_Chrome.jpg Then go to instance you created and copy field URL under section AMQP Details . SmartSelect_20220805-003947_Chrome.jpg. Dont worry, this is not the production queue and its details. This is the value you need to insert into required variable named AMQP_URL

For the MongoDb
Small intro into mongodb:

  • MongoDb is widely used NoSql database mostly used for large scale programmes. This was necessary once and decided to add ✉️ feature because it is used for storage of generated collages so they can be sent to end user.
  • For creating your Mongo instance i would advise you to use Mongo Atlas which is native MongoDb provider. You will need to create cluster (free will suffice), once you fill in all required fields for it you will be given popup with credentials. What is important, is that you copy MongoUri field, thi is what you will use in MONGO_URL variable. I will be honest with you, I am on my phone and I am not sure if this variable just pops up. If it doesn't please copy you login credentials and URL on which cluster is hosted. Resulting URI will be I format mongodb://{userName}:{password}@{host}:27017

If there are any inaccuracies or problems, come to my Demo discord server and I will help you as much as I can 🤗

from ai-art.

karafra avatar karafra commented on September 2, 2024 1

Okay ... i see. Dont want to del with this publically. Do you have discord? If so please write to me there

from ai-art.

karafra avatar karafra commented on September 2, 2024 1

Closing as this was resolved over at discord. Will improve documentation next release ✌️

from ai-art.

karafra avatar karafra commented on September 2, 2024

Hey

What guide would you like for these vars (I know this sounds stupid, but I would like your to hear your input in this matter)

from ai-art.

Jnss98b avatar Jnss98b commented on September 2, 2024

Just how to get them/set them up because they're required and I have no idea what they are for and I don't even know what AMQP is

from ai-art.

Jnss98b avatar Jnss98b commented on September 2, 2024

I got through the discord bot/app set up and tried to deploy to Heroku with the bot token but is still missing those two required values mentioned above that I don't know how to obtain

from ai-art.

Jnss98b avatar Jnss98b commented on September 2, 2024

Also I just noticed that you don't need to configure those when you deploy via docker. How come?

Only required variables is TOKEN, this can be set as environment variables using export ENV_NAME=VALUE on linux based OS or $env:VARIABLE_NAME=VALUE on Windows based OS

from ai-art.

Jnss98b avatar Jnss98b commented on September 2, 2024

Thank you so much for the comprehensive guide. I'll set this up and get back to you if I had any question

from ai-art.

Jnss98b avatar Jnss98b commented on September 2, 2024

Is there a preferred way to configure this? I assume I'd need to get the IP after I started my heroku instance?
image

from ai-art.

karafra avatar karafra commented on September 2, 2024

No there is not, and please dont setup IP list as heroku rotates IPs once in 24 hours.

from ai-art.

Jnss98b avatar Jnss98b commented on September 2, 2024

So I should not set it up at all is what I'm hearing

from ai-art.

Jnss98b avatar Jnss98b commented on September 2, 2024

I got this error when I built and tried to run on heroku

image

from ai-art.

Jnss98b avatar Jnss98b commented on September 2, 2024

Maybe it's bc I haven't set this up properly?
image

from ai-art.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.