Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?

Install Huginn

  1. Clone the repo

     $ git clone git@github.com:cantino/huginn.git
     $ 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.

@TigerStripedCat

This comment has been minimized.

Copy link

commented Oct 15, 2016

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

@juanhiplogiq

This comment has been minimized.

Copy link

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.

@TigerStripedCat

This comment has been minimized.

Copy link

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

@dennyabraham

This comment has been minimized.

Copy link

commented Mar 13, 2017

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

@stvhwrd

This comment has been minimized.

Copy link

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.

@ACERY1

This comment has been minimized.

Copy link

commented Nov 27, 2018

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.