Comments (14)
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.
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.
Then go to instance you created and copy field
URL
under section AMQP Details .. 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 formatmongodb://{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.
Okay ... i see. Dont want to del with this publically. Do you have discord? If so please write to me there
from ai-art.
Closing as this was resolved over at discord. Will improve documentation next release
from ai-art.
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.
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.
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.
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.
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.
Is there a preferred way to configure this? I assume I'd need to get the IP after I started my heroku instance?
from ai-art.
No there is not, and please dont setup IP list as heroku rotates IPs once in 24 hours.
from ai-art.
So I should not set it up at all is what I'm hearing
from ai-art.
I got this error when I built and tried to run on heroku
from ai-art.
Maybe it's bc I haven't set this up properly?
from ai-art.
Related Issues (15)
- 🗒️ Add documentation for commands
- Fix CogView2 command
- Add web client
- Add Docker images for models
- Persisted queries are enabled and are using an unbounded cache. Your server is vulnerable to denial of service attacks via memory exhaustion. Set `cache: "bounded"` or `persistedQueries: false` in your ApolloServer constructor, or see https://go.apollo.dev/s/cache-backends for other alternatives.
- MongoDB issue HOT 1
- Stable diffusion API HOT 1
- DALLE 2 or other art ai support HOT 5
- error HOT 2
- Discord bot is down HOT 1
- Containerized deployment ERROR [TypeOrmModule] Unable to connect to the database. HOT 1
- TypeError: Cannot destructure property 'dtoInstance' of 'commandNode' as it is undefined. HOT 1
- Command "/ai-story story" is missing and "/ai-story open-ai" doesn't work. HOT 2
- AI-Story Failing Error 401 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ai-art.