Skip to content
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

Installing Monocle on Heroku #22

Open
raybesiga opened this issue Jan 20, 2014 · 11 comments
Open

Installing Monocle on Heroku #22

raybesiga opened this issue Jan 20, 2014 · 11 comments

Comments

@raybesiga
Copy link

I have had a series of challenges deploying Monocle to Heroku. Has anyone done it? Can you share your experience with a step-by-step guide?

@aendra-rininsland
Copy link

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

@raybesiga
Copy link
Author

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

@aendra-rininsland
Copy link

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.

@raybesiga
Copy link
Author

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?

@aendra-rininsland
Copy link

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

@raybesiga
Copy link
Author

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.

@raybesiga
Copy link
Author

@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!

@aendra-rininsland
Copy link

@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.

@raybesiga
Copy link
Author

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

@aendra-rininsland
Copy link

@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.

@raybesiga
Copy link
Author

You are the best @Aendrew!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants