New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possibility of running on Heroku #59
Comments
Have you tried to fork the project & make it your git root on Heroku? I'm not sure with Go apps, but setting up an application seems quite straightforward: https://devcenter.heroku.com/articles/deploying-go But of course setting it up with default Fathom repository could be nice too 😄 |
Hey @JDsnyke, I don't actually have any experience with Heroku myself but I'll dive into their docs tomorrow to see how we can make deploying to Heroku easier (or whether anything is even needed to make the two compatible). From a quick glance at their docs, it seems you can push the official Docker image to the Heroku Container Registory. |
any news here? am excited to try fathom on heroku as well! |
Can Heroku run Docker images? If so you *could* do that?
James Mills / prologic
E: prologic@shortcircuit.net.au
W: prologic.shortcircuit.net.au
…On Mon, Jun 18, 2018 at 2:14 PM, smobbl-bobbl ***@***.***> wrote:
any news here? am excited to try fathom on heroku as well!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#59 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABOv-nkwswRmjJhNc6af-N6aagXvjXFJks5t-BhSgaJpZM4UkeR3>
.
|
I made a few tests, and what I struggle with, mostly:
|
I do not have a Heroku account under hand but try setting the env variable Maybe something like this would work, using
Mind the Default port in fathom/main.go:47-50 |
@lovethebomb this solution doesn't work because I don't know Go, but I think there might be a way to parse every |
@dannyvankooten Maybe this could be solved by using the env var cascading definition? https://github.com/urfave/cli#values-from-the-environment Which would be in
|
Hi all, for anyone new coming to this issue I got this working by following @Pierstoval and others in this thread. To recap (I can also add a note to the readme if it helps): // Get the code
$ git clone https://github.com/usefathom/fathom.git
$ cd fathom
// Create a new heroku app
$ heroku create
//Push the fathom container to heroku's registry
$ heroku container:push web
//Release the container
$ heroku container:release web
//Configure fathon to use msql and a secret
$ heroku config:set FATHOM_DATABASE_DRIVER=mysql FATHOM_SECRET=whateverGeneratedSecretYouWantToUse
//Create a new mysql database
$ heroku addons:create jawsdb:kitefin
//Get the mysql connection url
$ heroku config:get JAWSDB_URL
//mysql://user:password@host:3306/database_name
//Set database variables from the above url
$ heroku config:set FATHOM_DATABASE_NAME=database_name FATHOM_DATABASE_USER="user" FATHOM_DATABASE_PASSWORD="password" FATHOM_DATABASE_HOST="host:3306"
//Register a new user
$ heroku run ./fathom register --email=something@email.com --password='yourpassword' |
@theolampert I just tried and it doesn't work, probably because of the Edit: Nevermind, I forgot to upgrade my repository with the latest commits from |
@Pierstoval I managed to get it running, I think you need to remove any reference to |
Yep, I edited my comment, it's actually working well :) |
@Pierstoval glad to hear it!, @dannyvankooten maybe we could close this and add a note somewhere?. |
I suggest to add this to the Wiki & add a link in the README to make sure everyone can create a Heroku project easily just to host a Fathom app 😄 |
Hey, glad you got it working and thanks for sharing the info here. That helps! I'll be closing this issue while linking to it from the wiki. |
@theolampert Thanks for the instructions! They worked marvelously. Once my Heroku instance is up I can't find a way to add multiple sites. Once I've added a site, the dialog and UI in the upper right goes away. |
Hi @jdsimcoe, That is most likely because you didn't add a user account to your Fathom dashboard, effectively making it a "public" dashboard. Right now public dashboards don't show the site switcher dropdown until we work in more advanced user management (with roles), but you should be able to add a user, add your sites and then delete your user again to track multiple sites in a public dashboard. Example:
Then, login to your Fathom dashboard via the web interface and add your additional sites. To make the dashboard public again, delete the user account when you're done adding your sites.
|
Thanks so much, @dannyvankooten! This worked fabulously. |
getting this error when I run
|
@aleccool213 I got the same error using the latest files on Also, if you get the error below when you run
Run |
@davidyeiser Thank you so much! 😃 |
Hi ! I made a tutorialon how to deploy on heroku if anyone's interested. https://gist.github.com/gmolveau/78f88af3f5951ba6e093f93a07caa302 |
Great! @gmolveau Can you submit a PR to add a documentation section explaining this? 😄 |
@Pierstoval okay I'll make one. I have another one for clever-cloud.com too. |
Awesome! 👍 |
Loving the Fathom concept. Would it be possible to run a limited version on Heroku by any chance?
Cheers!
The text was updated successfully, but these errors were encountered: