Install on Cloud9
Closed this issue · 15 comments
How could you install this on Cloud9?
Thank you
Sincerely,
Postrr
- Create a new cloud9 instance
- Clone the repository and upload all files into your workspace
- Open console (View -> Console)
cd ~/<idOfYourWorkspace>
npm install
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:
cd ~/<idOfYourWorkspace>
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
chmod +x run.sh
./run.sh
You can open your reportr instance:
https://reportr-c9-frdmn.c9.io/
Thank you so much!
You’re welcome! :)
Good to see my script proved to be useful! Nice work on C9!
Unfortunately, all I get is "No App Running" What should I do?
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
I get this...
"./run.sh: line 1: FACEBOOK_CLIENTID=1419328741635292: command not found"
Nevermind I got it, but how do you stop it running?
Focus the terminal and just kill the process with CTRL + C
.
Ok, thanks! :)
Sadly :( I can not get Facebook, Twiter, Foursquare and the others set up... When I click on them nothing happens...
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.
@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.
So how would you install it on Heroku? With out entering a credit card.
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.