Skip to content
This repository has been archived by the owner on Jun 8, 2020. It is now read-only.

Install on Cloud9 #45

Closed
keepnone opened this issue Dec 4, 2013 · 15 comments
Closed

Install on Cloud9 #45

keepnone opened this issue Dec 4, 2013 · 15 comments

Comments

@keepnone
Copy link

keepnone commented Dec 4, 2013

How could you install this on Cloud9?

Thank you

Sincerely,
Postrr

@frdmn
Copy link

frdmn commented Dec 5, 2013

  1. Create a new cloud9 instance
  2. Clone the repository and upload all files into your workspace
  3. Open console (View -> Console)
  4. cd ~/<idOfYourWorkspace>
  5. npm install

To setup and run the MongoDB:

cd
mkdir data
echo 'mongod --bind_ip=$IP --dbpath=data --nojournal --rest "$@"' > mongod
chmod a+x mongod
nohup ./mongod &

Finally we have to setup a run script:

  1. cd ~/<idOfYourWorkspace>
  2. echo -e " PORT=8000 \ FACEBOOK_CLIENTID=1 \ FACEBOOK_CLIENTSECRET=1 \ TWITTER_CLIENTID=1 \ TWITTER_CLIENTSECRET=1 \ FOURSQUARE_CLIENTID=1 \ FOURSQUARE_CLIENTSECRET=1 \ GITHUB_CLIENTID=1 \ GITHUB_CLIENTSECRET=1 \ RUNKEEPER_CLIENTID=1 \ RUNKEEPER_CLIENTSECRET=1 \ FITBIT_CLIENTID=1 \ FITBIT_CLIENTSECRET=1 \ node bin/reportr.js run --mode=all &" > run.sh
  3. chmod +x run.sh
  4. ./run.sh

You can open your reportr instance:
https://reportr-c9-frdmn.c9.io/

@keepnone
Copy link
Author

keepnone commented Dec 5, 2013

Thank you so much!

@frdmn
Copy link

frdmn commented Dec 5, 2013

You’re welcome! :)

@dirkk0
Copy link

dirkk0 commented Dec 5, 2013

Good to see my script proved to be useful! Nice work on C9!

@keepnone
Copy link
Author

keepnone commented Dec 6, 2013

Unfortunately, all I get is "No App Running" What should I do?

@frdmn
Copy link

frdmn commented Dec 6, 2013

Can you give us some output of your console?

Should look something like this:

frdmn@reportr:~/700304 (master) $ ./run.sh 
[log][database] Connection to mongodb://localhost/reportr ...
[log][database] Open on mongodb://localhost/reportr
[log][queue] start queue
[log][trackers] register tracker chrome
[log][trackers] register tracker facebook
[log][trackers] register tracker foursquare
[log][trackers] register tracker twitter
[log][trackers] register tracker github
[log][trackers] register tracker runkeeper
[log][trackers] register tracker fitbit
[log][api] register api auth
[log][api] register api data
[log][api] register api models
[log][api] register api events
[log][api] register api trackers
[log][api] start api server
[...]
[log][web] Server is listening on port 8080

 Cloud9  Your application is running at https://reportr-c9-frdmn.c9.io    

@keepnone
Copy link
Author

keepnone commented Dec 6, 2013

I get this...

"./run.sh: line 1: FACEBOOK_CLIENTID=1419328741635292: command not found"

@keepnone
Copy link
Author

keepnone commented Dec 6, 2013

Nevermind I got it, but how do you stop it running?

@frdmn
Copy link

frdmn commented Dec 6, 2013

Focus the terminal and just kill the process with CTRL + C.

@keepnone
Copy link
Author

keepnone commented Dec 7, 2013

Ok, thanks! :)

@keepnone
Copy link
Author

keepnone commented Dec 7, 2013

Sadly :( I can not get Facebook, Twiter, Foursquare and the others set up... When I click on them nothing happens...

@dirkk0
Copy link

dirkk0 commented Dec 7, 2013

You need to set the 'FACEBOOK_CLIENTID=1 \ FACEBOOK_CLIENTSECRET=1' etc. Right now they are just the number '1' which of course is fake.

Here is a description on how you get these.

@frdmn
Copy link

frdmn commented Dec 7, 2013

@dirkk0 he already set them apparently at least it looks like that according to this comment.

@postrr Any console output as soon as you click on them?

Edit: i just tried to reproduce the problem and experienced the same problem. Not sure how to fix that since we don't have any stderr logs at all. I suggest you just set up a reportr instance on Heroku. Its free as well, at least if you run it with only one web dyno.

@keepnone
Copy link
Author

keepnone commented Dec 7, 2013

So how would you install it on Heroku? With out entering a credit card.

@frdmn
Copy link

frdmn commented Dec 7, 2013

Clone the repository, and then follow the instructions here and then this one to deploy. Because you run the application with only one web worker/dyno, you wont get charged by Heroku. If you run into some problems, use heroku logs -t to get the latest log files of your instance.

Also, please close this issue since its not really related to it anymore.

@keepnone keepnone closed this as completed Dec 7, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants