forked from balderdashy/sails
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:balderdashy/sails into csrf-config-2
Conflicts: CHANGELOG.md
- Loading branch information
Showing
23 changed files
with
116 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
<a href="http://sailsjs.org"><img alt="Sails.js logo" src="http://balderdashy.github.io/sails/images/logo.png" title="Sails.js"/></a> | ||
</h1> | ||
|
||
### [Website](http://sailsjs.org/) [Getting Started](http://sailsjs.org/#!getStarted) [Docs](http://sailsjs.org/#!documentation) [Submit Issue](https://github.com/balderdashy/sails/blob/master/README.md#issue-submission) | ||
### [Website](http://sailsjs.org/) [Getting Started](http://sailsjs.org/#!/getStarted) [Docs](http://sailsjs.org/#!/documentation) [Submit Issue](https://github.com/balderdashy/sails/blob/master/README.md#issue-submission) | ||
|
||
[](https://gitter.im/balderdashy/sails?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) | ||
|
||
|
@@ -19,14 +19,7 @@ $ sudo npm install sails -g | |
``` | ||
|
||
> ######New release available | ||
> The v0.11 release of Sails (with support for Socket.io v1.0) is nearly here. You can preview the v0.11 upgrading guide [here](http://sailsjs.org/#/documentation/concepts/Upgrading). To install the beta, run: | ||
> ``` | ||
> sudo npm install -g sails@beta | ||
> ``` | ||
> ######Upgrading from v0.9? | ||
> Be sure and check out the [v0.10 upgrading guide](http://sailsjs.org/#/documentation/concepts/Upgrading). | ||
> The v0.11 release of Sails (with support for Socket.io v1.0) is here! To read the v0.11 migration guide, click [here](http://sailsjs.org/#!/documentation/concepts/Upgrading). | ||
|
||
## Your First Sails Project | ||
|
@@ -59,7 +52,7 @@ Sails [controllers](http://sailsjs.org/#!documentation/controllers) are compatib | |
|
||
|
||
The ORM, [Waterline](https://github.com/balderdashy/waterline), has a well-defined adapter system for supporting all kinds of datastores. Officially supported databases include [MySQL](https://github.com/balderdashy/sails-mysql), [PostgreSQL](https://github.com/balderdashy/sails-postgresql), [MongoDB](https://github.com/balderdashy/sails-mongo), [Redis](https://github.com/balderdashy/sails-redis), local [disk](https://github.com/balderdashy/sails-disk), and local [memory](https://github.com/balderdashy/sails-memory). [Community adapters](https://github.com/balderdashy/sails-docs/blob/master/intro-to-custom-adapters.md#notable-community-adapters) exist for [CouchDB](https://github.com/search?q=sails+couch&nwo=codeswarm%2Fsails-couchdb-orm&search_target=global&ref=cmdform), [neDB](https://github.com/adityamukho/sails-nedb), [TingoDB](https://github.com/andyhu/sails-tingo), [SQLite](https://github.com/AndrewJo/sails-sqlite3/tree/0.10), [Oracle](https://github.com/search?q=sails+oracle&type=Repositories&ref=searchresults), [MSSQL](https://github.com/cnect/sails-mssql), [DB2](https://github.com/search?q=sails+db2&type=Repositories&ref=searchresults), [ElasticSearch](https://github.com/search?q=%28elasticsearch+AND+sails%29+OR+%28elasticsearch+AND+waterline%29+&type=Repositories&ref=searchresults), [Riak](https://github.com/search?q=sails+riak&type=Repositories&ref=searchresults), | ||
[neo4j](https://www.npmjs.org/package/sails-neo4j), | ||
[neo4j](https://www.npmjs.org/package/sails-neo4j), [OrientDB](https://github.com/vjsrinath/sails-orientdb), | ||
[Amazon RDS](https://github.com/TakenPilot/sails-rds), [DynamoDB](https://github.com/TakenPilot/sails-dynamodb), [Azure Tables](https://github.com/azuqua/sails-azuretables), and [RethinkDB](https://github.com/search?q=%28%28sails+rethinkdb+in%3Aname%29+OR+%28waterline+rethinkdb+in%3Aname%29%29&type=Repositories&ref=searchresults); for various 3rd-party REST APIs like Quickbooks, Yelp, and Twitter, including a configurable generic [REST API adapter](https://github.com/zohararad/sails-rest); plus some [eclectic projects](https://www.youtube.com/watch?v=OmcQZD_LIAE). | ||
|
||
<!-- Core adapter logos --> | ||
|
@@ -89,7 +82,7 @@ Need help or have a question? | |
|
||
- [Tutorials](https://github.com/balderdashy/sails-docs/blob/master/FAQ.md#where-do-i-get-help) | ||
- [Stackoverflow](http://stackoverflow.com/questions/tagged/sails.js) | ||
- [#sailsjs on Freenode](http://webchat.freenode.net/) (IRC channel) | ||
- [#sailsjs on Freenode](https://webchat.freenode.net/?channels=sailsjs) (IRC channel) | ||
- [Professional/Enterprise Options](https://github.com/balderdashy/sails-docs/blob/master/FAQ.md#are-there-professional-support-options) | ||
|
||
_Please don't use the issue tracker for support/questions._ | ||
|
@@ -108,21 +101,21 @@ _Please don't use the issue tracker for support/questions._ | |
## Team | ||
Sails is actively built and maintained by [Balderdash](http://balderdash.co) ([@balderdashy](http://twitter.com/balderdashy)), a realtime web & mobile studio, with the help of these [contributors](https://github.com/balderdashy/sails/graphs/contributors): | ||
|
||
[](http://michaelmcneil.com) | [](http://particlebanana.com) | [](http://www.pigandcow.com/) | [](http://xdissent.com) | [](http://www.zolmeister.com/) | ||
[](http://michaelmcneil.com) | [](http://particlebanana.com) | [](http://www.pigandcow.com/) | [](http://irlnathan.github.io/sailscasts/) | [](http://twitter.com/fancydoilies) | ||
:---:|:---:|:---:|:---:|:---: | ||
[Mike McNeil](http://michaelmcneil.com) | [Cody Stoltman](https://github.com/particlebanana) | [Scott Gress](https://github.com/sgress454) | [Greg Thornton](https://github.com/xdissent) | [Zoli Kahan](https://github.com/Zolmeister) | ||
[Mike McNeil](http://michaelmcneil.com) | [Cody Stoltman](https://github.com/particlebanana) | [Scott Gress](https://github.com/sgress454) | [Irl Nathan](https://github.com/irlnathan) | [Rachael Shaw](https://github.com/rachaelshaw) | ||
|
||
[Balderdash](http://balderdash.co) designs/builds scalable Node.js apps for startups and enterprise customers. After building a few apps and taking them into production, we realized that the Node.js development landscape was very much still the Wild West. Over time, after trying lots of different methodologies, we decided to crystallize all of our best practices into this framework. [I](http://twitter.com/mikermcneil) hope it saves you some time :) | ||
|
||
|
||
## License | ||
|
||
[MIT License](http://sails.mit-license.org/) Copyright © 2012-2014 Mike McNeil | ||
[MIT License](http://sails.mit-license.org/) Copyright © 2012-2015 Mike McNeil | ||
|
||
> Sails is built around so many great open-source technologies that it would never have crossed our minds to keep it proprietary. We owe huge gratitude and props to TJ Holowaychuk ([@visionmedia](https://github.com/visionmedia)) and Guillermo Rauch ([@guille](https://github.com/guille)) for the work they did, as well as the stewards of all the other open-source modules we use. Sails could never have been developed without your tremendous contributions to the node community. | ||
> Sails is built around so many great open-source technologies that it would never have crossed our minds to keep it proprietary. We owe huge gratitude and props to TJ Holowaychuk ([@visionmedia](https://github.com/visionmedia)) and Guillermo Rauch ([@rauchg](https://github.com/rauchg)) for the work they did, as well as the stewards of all the other open-source modules we use. Sails could never have been developed without your tremendous contributions to the node community. | ||
|
||
|
||
![[email protected]](http://sailsjs.org/images/bkgd_squid@2x.png) | ||
![[email protected]](http://sailsjs.org/images/bkgd_squiddy.png) | ||
|
||
[](http://githalytics.com/balderdashy/sails) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/usr/bin/env node | ||
|
||
|
||
/** | ||
* Module dependencies | ||
*/ | ||
|
||
var _ = require('lodash'); | ||
var util = require('util'); | ||
var path = require('path'); | ||
var rconf = require('../lib/app/configuration/rc'); | ||
|
||
/** | ||
* `sails deploy` | ||
* | ||
* Deploy the Sails app in the current directory to a hosting provider. | ||
*/ | ||
|
||
module.exports = function() { | ||
|
||
var commands = rconf.commands; | ||
var deploy = commands && commands.deploy; | ||
var modulePath = deploy && deploy.module; | ||
var module; | ||
|
||
// If no module path was specified, bail out | ||
if (!modulePath) { | ||
console.error("No module specified for the `deploy` command."); | ||
console.error("To use `sails deploy`, set a `commands.deploy.module` setting in your .sailsrc file"); | ||
return; | ||
} | ||
|
||
// Attempt to require the specified module from the project node_modules folder | ||
try { | ||
module = require(path.resolve(process.cwd(), 'node_modules', modulePath)); | ||
} | ||
|
||
// If the module couldn't be required, bail out | ||
catch (e) { | ||
console.error("Could not require module at path: " + modulePath + ". Please check the path and try again."); | ||
} | ||
|
||
module({config: {}}, console.log); | ||
|
||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.