how to run ejabberd with Erlang on Heroku? - heroku

I am trying to create a realtime private chat app running on ejabberd in Erlang. I am trying to install the same on Heroku. I am aware on how to run Erlang on Heroku but I don't know how to get ejabberd running on Heroku for my application. I am completely new in developing realtime chat app but I am thinking to make it scalable. Please anyone can tell me how to do this.
Thanks.

Assuming that you are using source code form github.
After compiling with
./autogen.sh
./configure
make rel
there should be rel/ejabberd/bin/ejabberdctl executable, and adding
web: ./rel/ejabberd/bin/ejabberdctl start
to your Procfile should be enough to start the server.

Related

How to web app isntace of Zxing QR generator locally?

I am hoping someone can provide some guidance on how to host a local html / web app instance of https://zxing.appspot.com/generator. I have read the documentation, and have searched in the web but I have come away empty-handed.
Also related, Does anyone know how safe it is to use zxing.appspot.com/generator when entering personal info (like wifi passwords)?--> this is one motivation to run the app locally but I am not sure if this concern is well-founded.
I tried downloading the web app source code from: https://github.com/zxing/zxing/tree/master/zxing.appspot.com
and installed it using maven. It seems like the installation went without issues (in wsl2), but I dont find a way to run the app locally as a web server.

Shopify CLI - Ngrok error when serving app

I am on a windows 10 machine and trying to use the Shopify App CLI to create apps, but I am running into some errors.
First I installed ruby so I could use the gem command to install the Shopify App CLI, as explained here.
When running shopify version as explained in the above documentation, I get the following output:
bash: shopify: command not found
After googling for a bit I found a solution to this problem, by running shopify.bat version. With this command I can use the CLI.
Moving on, I tried following this tutorial to create my first Shopify App. I used shopify.bat create node to create my app, moved into the folder and ran shopify.bat serve to serve my app locally.
Now the following problem arises:
It starts promising by installing ngrok:
But after waiting for a bit, I get the following output (Sorry for the screenshot, I could not get it to look normal with inline code):
What I also notice is that it uses C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/shopify-cli-1.4.0/ as the path to the CLI, but when looking on Google, most people have /home/[USER]/.shopify-app-cli/ as the path to the CLI. This path does not exist on my machine.
So I would like to know why first of all the serving of the app won't work, because ngrok can't be found, and second why ~/home/user/.shopify-app-cli does not exist.
Thanks in advance,
Mike
I think modern Windows come with Linux now. Since the Internet runs on Linux, you might find development and following tutorials much easier if you use Linux, since all these inconveniences of Windows disappear. Unless you are already super handy with all the quirks of Windows to work around their results, it could be your ticket!
That being said, I mastered this development pattern using *nix and it remains pretty advanced to actually have a smooth workflow for both localhost and production development. Ngrok itself is painful without paying for the service and using puma-dev and puma-ngrok... I laugh when I think about how those essentials running under Windows will be for you.

Kiwi Tcms Windows Installation and Configuration without docker

I want to run Kiwi tcms on my windows, but i'm unable.
I've followed instructions on this that is for linux based, but i managed to run these on my windows, except npm install patternfly as I can't find patterfly, but installed npm only.
There's another question I've asked where I'm stuck, so If I did anything wrong, please guide me so I can do it from the start.
Help would be greatly appreciated.
Look for a guide how to deploy Django applications on Windows. We don't really use Windows and deploying from something else than a Docker container isn't really supported so you need to know what you are doing. If this is new to you you'd better stick to using docker-compose!

Using facebook APIs locally

i want to start making a facebook app and using the APIs, but i dont have a website to test anything out. how do i get it working on localhost or is it better to start using heroku for it and upload all my php files onto that
Use XAMPP
It's available for Windows, Linux and for Mac.

Deploy nodejs in Windows environment

I am trying to deploy nodejs in a windows environment. As far as I can see nodejs is just a standard application run through the command-line. However running it that way is not very practical in a server environment. Is there a way to run it as a windows service, so you get all the benefits of controlling the execution as you have with other services? I found similar forum entries about this subject, however they are all related to running nodejs in a linux environment, how would you go about doing this in a window environment?
Nodejs application is not like mongodb, redis, nginx ... It's not supposed to run as an os service.
As a best practice, people usually use a process management tool like pm2 to run production nodejs applications. You can give it a try by creating a deploy.sh or deploy.bat as an execution file which trigger pm2 command to start or restart the application.

Resources