-
Notifications
You must be signed in to change notification settings - Fork 71.8k
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
Vagrant installation #31
Conversation
Currently facing an issue installing Kudu Sync #30 |
Deploy.sh is only used by Azure, other places should not use it. To run, just run npm install, setup the environment variable and start the On Tue, Jul 1, 2014 at 5:01 AM, Ollie Glass notifications@github.com
|
Hi @ollieglass I was using Vagrant for my (project-glu)[https://github.com/jasoncalabrese/project-glu/blob/master/Vagrantfile] to auto deploy to digial ocean. I've been planning to port that over here once I switch back to the community version. |
Also, @ollieglass how do you think we could best make a combined Vagrantfile for Nightscout and @scottleibrand's DIYPS |
@jasoncalabrese I'm working on adding Vagrant to DIYPS too, but I was just intending to make local development easier. DIYPS needs apache and php, instead of doing all the symlinking etc. on my Mac I'd rather use a VM. Deploying to DO is a nice feature to have, I've not looked at that. No reason why Nightscout and DIPYS can't share a Vagrant setup. One conflict I can see is that they're both serving on port 80, but that's easy to fix by moving them to subfolders. The other is that they're in separate repos and DIYPS is private. I'm not sure how to handle this, any thoughts? |
BTW I'm using James Wedding's public CGM data (from http://nightscout.info/forum/discussion/comment/148#Comment_148), my
|
@ollieglass by default node.js is running nightscout on port 1337. On my digital ocean server I have nginx running on 80, have vhosts setup for nightscout and diyps. |
Looks like it's not getting data from mongo |
Right. I've set the environment as shown in the installation guide and reset the Not sure what to check next. |
Testing the VM can actually connect to mongolab and retrieve a record - works fine.
|
Is there recent data? If not we should add some debug/info logging and make the issue easier to figure out. |
Here's the result of that query:
Browser console output looks ok. This is from Chrome, I also connected with Safari then closed that connection:
Here's the server's output, no errors:
|
…itor into vagrant * 'master' of https://github.com/nightscout/cgm-remote-monitor: (52 commits) travis.yml: removed unused gitter.im hook Removing audio.load() per bewest's request get sign in bg delta correct actually show bgdelta Removing unnecessary packages Removing unused library README: Build & Dependancies manually bust cache client.js change test successful test 2 alert test1 fix now-line placement HTML App Cache: removed .css and .js files. removed test alert alert test2 test alert1 tweak whitespace Added alarm silence for 120 minutes Ensure that audio loops once it starts re-work audio handling ... Conflicts: .gitignore
@ollieglass it looks like most of the I haven't done a lot with vagrant, but as I mentioned before I did use it to deploy to a new digital ocean droplet. I think that could be added to this |
@ollieglass, let me know what you think about my comment above |
Hi @jasoncalabrese sorry for the delay getting back to you. The Vagrantfile has all of the settings it needs - just the base box and the private network. I'd prefer to leave the comments in as I think they make it easier for others who might want to review or edit in the future - in the same way you might leave comments in an Apache config file. I'm not aware of anything missing from the config.
It is possible to deploy to Digital Ocean with Vagrant, and it is done along the lines you've mentioned. I'm not sure how to do it exactly though, I'd prefer to close this pull request as it and make that addition a new feature. Some kind of automated remote deploy would be great. |
Thanks @ollieglass for the base Vagrant installation
* Bump version to 14.2.3
Make the python server friendly with the menu program.
Run Nightscout in a Vagrant VM
Adds a Vagrantfile and setup.sh script. When complete, this pull request will let you install by cloning the repo, running
vagrant up
,vagrant ssh
then./setup.sh