How to mine Monero on Heroku for free

in #monero7 years ago (edited)

alt text

It is actually pretty simple. Using Coinhive, Github, Heroku and UptimeRobot you can setup a cloud-based NodeJs Miner.

  1. Fork or Clone this Repository - https://github.com/bl1nkr/monero-miner

  2. Run "npm start"

  3. Create a (free) account on https://coin-hive.com/ and get your API Key under Settings / Sites & API Keys (ex. OwZyZ3HVKjMeMTrodeXC2iZ7ZGY8eOdT)

  4. Replace the API key in index.js (line 7) with your API Key

  5. Create a (free) account on http://www.heroku.com

  6. On Heroku create a new application

alt text

  1. Add the following buildpacks

alt text
alt text

  1. Connect your Heroku app to your GitHub repo and enable the automatic deployment feature

alt text

  1. Verify that the solution builds

alt text

  1. The solution is basically a web server that does nothing (https://my-monero-miner.herokuapp.com/) but behind the scenes is using the heroku server to mine monero

alt text

  1. Login to your coin-hive account and verify you are receiving reward

Note: After 30 minutes the heroku instance will go to sleep so be sure to sign up for another free service (https://uptimerobot.com/) which can ping your url every 5 minutes to make sure it stays up.

Sort:  

What is your mining rig built?

Fork or clone what repository? : )

I feel dumb.. But how do you actually run npm start

no problem man! make sure you install NodeJs Version 8 and you can just enter "npm start" in the directory where you clone the repo

Congratulations @bl1nkr! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

You got a First Vote

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

By upvoting this notification, you can help all Steemit users. Learn how here!

Congratulations @bl1nkr! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

You got a First Reply

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

By upvoting this notification, you can help all Steemit users. Learn how here!

@bl1nkr looks like a pretty solid guide to me! keep up the good work.

I would be interested in hearing your thoughts on the latest episode of Crypto Nights, in which we discuss Monero. This week's episode will be featured on @antonburton profile but I will resteem.

Upvoted.

Alex

Playing around with same thing. Although I killed web and left one worker on two different apps (since multiple workers on same app were just splitting same hashrate). I've noticed this isn't consuming Free dynos. Can you confirm that?

it does use free dynos =/ you could also get a free virtual private server on AWS for a year and let it run 24/7 at no cost. You could do both heroku and AWS to double up!

Thnx for the tip

Happy mining and then account suspension... I got it.

Your worker is actually pretty ineffective, there are better solutions that give you hashrate about 110 h/s, but don't try to do that. Mining cryptocurrencies is prohibited on Heroku https://www.heroku.com/policy/aup and they will suspend your account.

(sorry is should be comment to author of this tutorial, not to you @amatiash)

...And then I witnessed this almost the same comment... ;)

I want to apologize to you both. I don't know what I was thinking and never bothered to look at the terms and conditions. I was lucky not to have my account suspended. Heroku is a great service.

Don't do that. Mining of cryptocurrencies is prohibited on Heroku https://www.heroku.com/policy/aup and will result in account suspension.

I wanted to apologize for posting this how to. I failed to look up the Heroku terms and conditions before doing this. Sorry for any issues I might have caused. I love Heroku and think they are a great resource.

Hi there, is there a way to contact you?

Regards

(you can catch me at [email protected])

Coin Marketplace

STEEM 0.17
TRX 0.16
JST 0.029
BTC 60935.14
ETH 2365.47
USDT 1.00
SBD 2.55