Deploying Julia on Heroku - Buildpacks and PackageCompiler Failing

I found a decent solution… a proxy server on Heroku that just forwards to an ec2 instance running the Julia server:

const express = require('express')
const app = express()
const port = process.env.PORT || 3000

var request = require('request');

app.use('/', function (req, res) {
    var url = "http://34.237.210.243" + req.url;
    req.pipe(request({ qs: req.query, uri: url })).pipe(res);
});

app.listen(port, () => console.log(`Example app listening at http://localhost:${port}`))

I have https://saunasim.com/ setup all on AWS with load balancers for HTTPS. When it broke I got an expert on Upwork to help me and it still took an hour of clicking around the myriad of AWS services to fix it.

So I’m pretty happy with this solution and she’s live!!: https://www.coilgunner.com/

1 Like