Skip to content

Instantly share code, notes, and snippets.

What would you like to do?

Install Huginn

  1. Clone the repo

     $ git clone
     $ cd huginn
  2. Install Ruby and Ruby Gems (if necessary)

  3. Install rake and bundle (if necesssary):

     $ gem install rake bundle
  4. Install Huginn's dependencies

     $ bundle install
  5. Install MySQL

  6. Start the MySQL server:

     $ mysql.server start
  7. Copy .env.example to .env:

     $ cp .env.example .env
  8. Create the APP_SECRET_TOKEN:

     $ rake secret
  9. Edit .env, at least updating the APP_SECRET_TOKEN variable we just created.

  10. Create a development MySQL database with some example seed data:

     $ rake db:create
     $ rake db:migrate
     $ rake db:seed
  11. All done. Fire up the local server:

     $ foreman start  

    Navigate to http://localhost:3000/ and login with the username and the password of "admin" and "password", respectively.

Copy link

TigerStripedCat commented Oct 15, 2016

Sadly this did not work for me :(
Not 100% sure why.

Copy link

juanhiplogiq commented Oct 18, 2016

'did not work for me' is not descriptive enough for anyone to assist you. Add some more details and maybe someone in the community might help. Include error messages, stack trace, etc.

Copy link

TigerStripedCat commented Oct 20, 2016

Thanks juanhiplogiq, gladly.

I have no idea what a stack trace is, but have manged to upload the terminal saved output. Although not displayed in the file the command $ mysql.server start did nothing either.

I suspect there is some simple reason why things aren't working for me, however I know that knowledgeable about such things.

Thanks for any assistance.

terminal saved output

Copy link

dennyabraham commented Mar 13, 2017

FYI, step 7 now needs to precede step 3 because the Gemfile references .env

Copy link

stvhwrd commented Sep 10, 2017

Thanks @dennyabraham! You're right. Another error is that mysql.server start is not a valid command. Users coming to this gist can try executing sudo service mysql status to see that MySQL is likely already running.

Copy link

ACERY1 commented Nov 27, 2018

'require': cannot load such file -- dotenv (LoadError)

I copy the example env file to .env,but still throw this ERROR

Copy link

Dan-Q commented Oct 18, 2021

'require': cannot load such file -- dotenv (LoadError)

I copy the example env file to .env,but still throw this ERROR

Sounds like you might have missed bundle install, or it didn't complete successfully?

Copy link

hopsoft commented Jun 2, 2022

Note that HEAD (as of 2022-06-02) will not work with Ruby 3+. I had to downgrade Ruby to version 2.7 to get things working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment