GithubHelp home page GithubHelp logo

Installing Monocle on Heroku about monocle HOT 11 OPEN

maccman avatar maccman commented on June 20, 2024
Installing Monocle on Heroku

from monocle.

Comments (11)

aendra-rininsland avatar aendra-rininsland commented on June 20, 2024

These instructions are pretty good: http://dan-jenkins.co.uk/monocle-on-heroku/

from monocle.

raybesiga avatar raybesiga commented on June 20, 2024

Thanks @Aendrew this is great. Will try to do it on Digital Ocean as well, test the degree of complexity.

from monocle.

aendra-rininsland avatar aendra-rininsland commented on June 20, 2024

Sounds good! I use DO, will be good to know!

For Googlers, one additional point that confused me and isn't covered by the above: After creating a user by logging in via OAuth, you need to run irb -r ./app.rb — this is done via heroku run "irb -r ./app.rb"; make sure to include the quotation marks or else the Heroku Toolbelt gets confused. Also, ignore the bit about thin start, Heroku is already running the server via Unicorn.

from monocle.

raybesiga avatar raybesiga commented on June 20, 2024

Thanks @Aendrew it is installed and running. You can check it out at http://habari-moto.herokuapp.com/ How do I manage the number of invites I can send out as an admin user?

from monocle.

aendra-rininsland avatar aendra-rininsland commented on June 20, 2024

Looks good, @raybesiga!

I'm really not the person to ask; I really have no idea how the admin system works at all.

That said, to add more invites, I've simply been going into the console add running something like (untested):

user = Brisk::Models::User.first
user.invites = 999
user.save

from monocle.

raybesiga avatar raybesiga commented on June 20, 2024

Thanks @Aendrew what is the link to yours? Will try your method and give you feedback. @maccman must be busy doing amazing things but we ought to thank him for this amazing piece of software.

from monocle.

raybesiga avatar raybesiga commented on June 20, 2024

@Aendrew The actual assignment that works is

user.invites_count = 40
user.save

If you check, you should see that you have 40 invites. Only problem is that I am not sure the invitation system actually works!

from monocle.

aendra-rininsland avatar aendra-rininsland commented on June 20, 2024

@raybesiga Ah, yep! Forgot that the attribute is invites_count, hope that wasn't too difficult to figure out!

re: invitation system not working — nope, sure isn't. See #26.

from monocle.

raybesiga avatar raybesiga commented on June 20, 2024

@Aendrew I need to get it working. Should seek advice from @maccman as I failed to find the invite-less branch..

from monocle.

aendra-rininsland avatar aendra-rininsland commented on June 20, 2024

@raybesiga I need it working too. I'm going to try and spend some time early this week re-forking the existing codebase (My fork is too messy at the moment) and re-adding that.

In the meantime, if you're wanting to re-add it yourself, reference the diff at cdf602d — most of the invite code was removed in that.

from monocle.

raybesiga avatar raybesiga commented on June 20, 2024

You are the best @Aendrew!

from monocle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.