Skip to content
Today I Learned
  • 0

    Cart

    No products in the cart.

Monthly Archives: May 2019

Coding, Internet

Keep free heroku dynos up forever

Posted on May 7, 2019May 7, 2019 by Dan Tascher
app.set('port', (process.env.PORT || 5000));

//For avoidong Heroku $PORT error
app.get('/', function(request, response) {
    var result = 'App is running'
    response.send(result);
}).listen(app.get('port'), function() {
    console.log('App is running, server is listening on port ', app.get('port'));
});

if(process.env.url){
    http.get(process.env.url);
}


setInterval(function(){
    http.get(process.env.url);
}, 300000)
Posted in Coding, Internet Leave a comment
Recent Posts
  • Automatically Add Missing @onmicrosoft.com Aliases to Office 365 Users
  • Spiced Cider Cookies
  • How To Add Swap Space on Debian 11/12
  • Running a MacOS 14 Sonoma VM in VMware on Windows 10 or Windows 11
  • Using DISM to Check and Repair Windows Image
Recent Comments
  • Anil on Property ‘MaxInternalSize’ does not exist in class ‘Msvm_VirtualHardDiskSettingData’ – VHDX on Hyper-V
  • Germán on Property ‘MaxInternalSize’ does not exist in class ‘Msvm_VirtualHardDiskSettingData’ – VHDX on Hyper-V
Archives
  • April 2025
  • December 2024
  • August 2024
  • March 2024
  • January 2023
  • March 2021
  • January 2021
  • January 2020
  • December 2019
  • October 2019
  • July 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
Categories
  • Baking/Cooking
  • Coding
  • Coffee
  • Internet
  • Linux
  • Misc
  • Movies
  • Office365
  • Software
  • Torrents
  • Uncategorized
  • Windows
Meta
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Recent Posts
  • Automatically Add Missing @onmicrosoft.com Aliases to Office 365 Users
  • Spiced Cider Cookies
  • How To Add Swap Space on Debian 11/12
  • Running a MacOS 14 Sonoma VM in VMware on Windows 10 or Windows 11
  • Using DISM to Check and Repair Windows Image
Archives
  • April 2025
  • December 2024
  • August 2024
  • March 2024
  • January 2023
  • March 2021
  • January 2021
  • January 2020
  • December 2019
  • October 2019
  • July 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
Categories
  • Baking/Cooking
  • Coding
  • Coffee
  • Internet
  • Linux
  • Misc
  • Movies
  • Office365
  • Software
  • Torrents
  • Uncategorized
  • Windows
Tags
backup baking bitlocker brewing chocolate chips chocolate in the middle christmas coffee command line cookies cooking corruption disk activity dism encryption funny hard drive image javascript js linux marvel mcu mongo movies mssql oatmeal oats office365 pour over powershell programming python registry scripting spiced task manager toffee watching order web development web scraping windows
Meta
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Copyright 2025 © UX Themes
  • Assign a menu in Theme Options > Menus
  • Login
  • Newsletter

Login

Lost your password?