1and1 domain, Heroku hosting - how to set up email? - heroku

I just purchased a domain name from 1and1 and set the cname to point to my app on heroku. However, I want to have an email support#mydomain.com. Do I need to do this via 1and1 or heroku, and how do I go about it?

This is more of a Super User question.
The nutshell answer is that if you own the domain, you can run mail wherever you want—just set the MX DNS record to point at whatever server you want to handle mail for you. In general, though, you don't want to run mail, because it's a huge headache and it comes with responsibilities you probably don't want to have (as evidenced by your asking this on Stack Overflow, not Super User or Server Fault). So really you have two options:
Run mail yourself
Let someone else run mail for you
I don't recommend #1, but if you want to, I think you'll have more luck running it on 1and1. I have a friend who ran mail on his VPS on 1and1 for about four years before switching providers. So if that's what you want to do, read up on Postfix and install it on 1and1, set your MX to point to that server.
It doesn't look to me like you can run mail on Heroku, but I'm far from an expert on that.
Option #2, which I recommend, is to let someone else deal with it. For example, Google Apps will do this, and if you're a non-profit, you can get it for free. That's free Gmail, which I consider an upgrade from the kind of mail I can provide myself. I also ran into this SendGrid service, which seems to have detailed (albeit long) instructions for integrating with a Rails app on Heroku.

Related

From what IP and fingerprint do Reddit bots deployed on Heroku (or equivalent) work?

I'm planning on using bots to moderate my Reddit servers. I own a bunch of them, and some of them have grown pretty rapidly and unexpectedly in a short period of time, so I think it's time I start automating parts of the moderation.
One of the options I'm considering is deploying a python script on Heroku or Dokku, and just leave that runnning.
What I would like to know is what exact location/IP address will reddit see the bot user logged in as. I will be having 5-10 bots, and I want to make sure I am not breaking any rules.
A long time ago I experimented with using selenium bots on Reddit, however Reddit has very strict policy with selenium bots, and all the accounts either got banned or shadowbanned.
I was doing somewhat spammy things with my selenium bots, however I plan on using these bots strictly for moderation purposes, and I'd like to know what precautions I'd need to take to avoid bans/shadowbans.
Also, do I need to use a different Heroku location for each bot? I remember using a multi-fingerprint browser with different proxies for my selenium bots.
Any help would be appreciated,
Thanks!

Question about deploying a Shopify app to Heroku

I have question about Shopify app development and the deployment process.
I've used the getting started guide here, and I have an app that works fine when I use npm run dev and view the app in the store admin.
However, of course, once I stop the server from running, the app is no longer accessible.
I believe I need to deploy the app to Heroku (or something similar) in order to have it work in a non-development environment.
It doesn't seem like there is much guidance online from Shopify about the best way to go about this.
Does anyone know what steps I need to take in order to deploy my app to Heroku, so that I can use the app in by test store on another device?
It seems like every guide online stops JUST BEFORE explaining this process and I can't figure out why! I have tried everything online but nothing has worked:
Adding the code to Github and connecting it to Heroku
Using Docker
Any help is appreciated. Thank you!
You have zero obligations to use Heroku. If you have an IP address dedicated to your house, you could host the App using your house. If you co-locate your own server at an Internet business, and they give you IP addresses you can use that. If you wanted to use Amazon directly, you could use EC2. If you wanted to use Linode, or Azure, or any other cloud service, feel free! It is up to you!
Using Heroku (built on AWS) is traditional only in the sense that it is the original easy peasy hosting in the cloud service. Play with Heroku by reading Heroku-specific documentation or hosting information. This has nothing to do with Shopify. Shopify only mentions Heroku because traditionally, developers used it. No other reason.
If you want to learn how to use Heroku, 100% there are blog posts within easy reach for you to study and learn from.

Heroku alternative

I´m new on development and found Heroku easy for deploying my app.
I was happy until I got to problems:
Heroku does not provide an IP adress which I need for a white IP list to access an API. I fixed this with a Heroku add-on proxy called Fixie. That is free if under 500 request per month.
The Heroku free plan sleeps after 30 min of inactivity. My app needs to makes API requests at midnight and this is getting difficult because the app is sleeping.
I was thinking to pay the nearest cheap plan on Heroku which make that the app does not sleep. But then I though why not use another platfrom than Heroku.
Does anyone have some sugestions? Any other platform that give an IP so I don´t worry about crossing the 500 request per month?
I was thinking of AWS Elastic Beanstalk. But as I said I´m new at this.
You can use DigitalOcean: the cheapest plan is 5$ a month and you get a Droplet with its own IP address. The Droplet is always running (no inactivity timeout like Heroku).
The main difference is Heroku provides an abstraction layer on top of the underlying infrastructure (you only deal with the application deployment and management) while DigitalOcean delivers a virtual box (ie Ubuntu), however the documentation is great and you can easily find what you need (ie install Docker, etc..)
Couldn’t agree more.
I have been running many applications on Heroku for years now and have faced the 1st problem that you’ve mentioned multiple times.
I tried using Engine Yard instead of Heroku as far as I can remember I never faced the IP issue that you are referring to. AWS is good, but again it’s not without its limitations because its really hard to use. It’s these shortcomings that drive users crazy, isn't it? All I can say is that when I shifted to Engine Yard the set problems I faced considerably dropped. It appears to be a much more usable platform. Check it out.
Here’s a link to Engine Yard, which I hope will help you.

How to make my chat-bot accessible from a web page?

I've got my Node.JS bot builder chatbot all working in the emulator, but I'm not sure how I can get started in allowing my bot to be chatted to by others through the internet, on a web page.
I've seen this article, but this seems to be if we want to host the both through Azure. Additionally, I'm not sure how I'd link the code I made for the bot with this.
This is for a school project for a local company, so I'm fairly sure (and will ask) that they want this to be free to run on their own servers, instead of paying Microsoft.
Can anyone help me understand how this all works?
If you're using MS Botframework & LUIS, you will have to host your webhook somewhere to make it accessible to public. Now, if you do not want to spend a penny for hosting services, I'd like to suggest you one more bot platform dialogflow.com (api.ai) where they have built-in inline editor (Powered by Cloud Functions for Firebase). You will just have to write your code there & say deploy. You won't be charged unless you're using a standard edition.
Now, second thing, if you do not want to do any of these & still want to make it public, you will have to have your own servers & all & expose your IP. Put that computer in the DMZ of your router. That is what it is for. Or, simply forward the needed ports. But here you will have to manage everything on your own like if a server goes down etc. Hope this helps.

Hosting a Laravel App on a Virtual Server

Forgive me if this would have been better placed somewhere else on the stackexchange network but I have seen a few Laravel questions being asked here so thought it would be OK.
Anyways...
I have a Laravel app which I want to get online and found some hosting here: https://www.server4you.net/virtual-server
The pricing is really good and there is root / SSH access. As I dont know if my web app will be a financial success I dont wanna go all out on a dedicated server but also don't mind migrating it at a later date (I know this will be a pain!)
I have seen a few people online recommend against using a VPS / shared server for a laravel app...my question is why?
If the servers can perform as advertised then this should be good?
I have never bought a vps or uploaded my own Laravel project to a server before so I feel like I should ask these questions now before I realise I have shot myself in the foot somehow way down the line...
Cheers!

Resources