-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Conversation
`./scripts/server` checks for CouchDB
@@ -13,23 +13,21 @@ To install the frontend please do the following: | |||
- Make sure you have installed [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) | |||
- Make sure you have installed [Node.js](https://nodejs.org/en/download/). Versions after 0.10.0 should work, but please note if you encounter errors using 5.x it may be necessary to upgrade your npm version. Versions after 3.5.x should work: | |||
1. `npm install -g npm` | |||
- Install [ember-cli v1.13.14](https://www.npmjs.org/package/ember-cli): `npm install -g [email protected]` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it have to be this specific version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@filipesperandio we could restate this as install the latest ember-cli since we are keeping it up to date as much as possible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
npm install -g ember-cli@latest
should do the trick.
@filipesperandio is this PR an OS specific PR? I tested it on OS X 10.10.5 and it doesn't seem to work there. I am wondering if there is a better way to do this in a way that would work across multiple OSes. |
@jkleinsc Should not depend on OS. Could you tell me what issues you face? |
@filipesperandio I just tried I'm also wondering if we could just do this all under npm vs make. While I'm comfortable using make, I think there may be some folks who would be uncomfortable using it. I am going to throw this issue into our slack channel as I would like to get more feedback from the community. |
@filipesperandio I like the changes. I am wondering if for couchdb check we can change it do the curl check that you put in for npm start instead of using command -v? That way it doesn't matter if the binary is located in the path. Also, I'm not that familiar with how to build makefiles so I may be misunderstanding what it is doing, but ember-cli, bower and phantomjs should be installed globally via npm install -g. Maybe there isn't a way to make that work with make?
Why does bower have reference to node_modules? |
@jkleinsc The Sorry if this PR is introducing too much in terms of changes in the DEV toolset, I hope it is for the best. Letting Make is a file generator, to simply put, their targets are, basically, files. As a file generator, the same file won't be generated more than once if things it depends on stay the same, for that it checks file's timestamps. |
@jkleinsc Glad you pointed it out, it was not 100% correct making I would advocate for keeping all the dependencies in the |
@filipesperandio I am going to go ahead and merge this PR. One question on your Mac OS testing -- how did you install couchdb and/or did you explicitly add couchdb to the path or did that happen automatically on install? |
@filipesperandio I noticed something when I was merging this PR -- make serve doesn't do anything with server/config.js but the readme seems to indicate you can skip step 7, which is to:
So either we need to update the readme or change the makefile to copy server/config-example.js to server/config.js if it doesn't exist |
I've installed couchdb through homebrew: Step 7 addressed in the Makefile, thanks for catching that. |
I had updated the PR descriptions a couple days ago with a bit more detail around requirements and tests I did, just for the record. |
Simplify DEV env setup a bit
make serve
starts couchdb & server, resolve dependencies like bower and ember-cli too - requirescouchdb
in the path (if installed throughapt-get
orbrew
you are all done)make all
run all tests and build the appTested on Mac OS 10.11.13 and Ubuntu 14.04