Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Remove 'grunt server' as 'grunt start' is betterer (sic). #124

Merged
merged 1 commit into from

2 participants

@muffinresearch
Collaborator

Fails if you use 'server':

Fatal error: There is no "server" command use grunt start instead

@davidbgk

r+

@muffinresearch muffinresearch merged commit 42ea23e into from
@muffinresearch muffinresearch deleted the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 7 additions and 14 deletions.
  1. +4 −1 Gruntfile.js
  2. +3 −13 docs/install.rst
View
5 Gruntfile.js
@@ -174,6 +174,10 @@ module.exports = function(grunt) {
grunt.task.run('casper:runtests');
});
+ grunt.registerTask('server', 'Deprecated start up', function() {
+ grunt.fail.fatal('There is no "server" command use grunt start instead');
+ });
+
grunt.loadNpmTasks('grunt-bower-task');
grunt.loadNpmTasks('grunt-casper');
grunt.loadNpmTasks('grunt-concurrent');
@@ -188,7 +192,6 @@ module.exports = function(grunt) {
grunt.registerTask('default', ['jshint', 'stylus']);
grunt.registerTask('docs', ['shell:docs']);
grunt.registerTask('start', ['stylus', 'concurrent:dev']);
- grunt.registerTask('server', ['nodemon:server']);
grunt.registerTask('test', ['jshint', 'runtests']);
grunt.registerTask('uitest', ['stylus', 'clean:uitest', 'runuitests']);
};
View
16 docs/install.rst
@@ -37,27 +37,17 @@ Create a local config file and fill in some values like ``signatureKeys``::
To start a development server type this::
- grunt server
+ grunt start
You can then browse the site at http://0.0.0.0:8080 (use the ``--noauth`` option
in case you don't want to pass OAuth headers at each request).
If you want to change the port run::
- grunt server --port=9999
-
-If you're developing then you'll probably also want grunt to look after re-building css
-and linting js as you go.
-To do that run::
-
- grunt start
-
-.. note::
+ grunt start --port=9999
- This just wraps up `grunt server watch` in a single convenient command and runs stylus so
- that if you don't have the css already generated it gets built for you.
-This will run both the local server and watch for changes. At the moment this auto runs:
+`grunt start` runs both the local server and watchs for changes. At the moment this auto runs:
* stylus
* jshint
Something went wrong with that request. Please try again.