Turn your audience into a business. Publishing, memberships, subscriptions and newsletters.
Go to file
Christopher Giffard 9c8b02949a 500 Series Error Handling & Stack Traces
Fixes #825

- Changes the way the error middleware is delivered in server.js, moving
  all the logic back into errorHandling.js
- Alters error logging to use console.error (probably more appropriate) instead
  of console.log
- Changes error tests to accomodate for these alterations
- Alters user-error and error hbs templates to incorporate stack traces
- Adds additional styling for error pages to accomodate stack traces
- Added logic to parse and deliver formatted stack traces

Notes:
======

- Jslint gets in the way of the regex I've got to use to parse the stack.
  (It cites 'security reasons' which are not relevant in this case.)
  I needed to add a condition to relax it at the top of errorHandling.js
- The stack trace should probably be added as a partial, but I figured it
  was out of scope for this PR.
2013-09-19 13:01:20 +10:00
content Removing FancyFirstChar plugin 2013-09-18 19:49:10 +01:00
core 500 Series Error Handling & Stack Traces 2013-09-19 13:01:20 +10:00
.afignore App restructure - closes #245 2013-07-11 20:23:34 +01:00
.gitignore Grunt build and gitignore updates 2013-09-18 19:45:21 +01:00
.gitmodules switching git submodule back to using ssh 2013-05-18 20:31:15 +01:00
.travis.yml Added CasperJS Functional Test to Build 2013-08-26 16:28:41 -05:00
config.example.js Updating example config file 2013-09-15 15:45:18 +01:00
CONTRIBUTING.md Updated README.md and CONTRIBUTING.md 2013-08-29 12:12:04 +01:00
Gruntfile.js Don't remove content images from build 2013-09-18 20:50:39 +01:00
index.js Refactor the initial boot of Ghost, allowing Ghost updates to keep current configuration intact. 2013-09-14 14:04:08 +01:00
LICENSE.txt Standardising license text. 2013-09-01 17:35:31 +02:00
package.json Version bump ready for release 2013-09-18 23:26:44 +01:00
README.md Minor updates to Readme 2013-09-18 23:30:45 +01:00

Ghost Build Status

Ghost is a free, open, simple blogging platform that's available to anyone who wants to use it. Lovingly created and maintained by John O'Nolan + Hannah Wolfe + an amazing group of contributors.

Visit the project's website at http://ghost.org!

Getting Started

There are two main ways to get started with Ghost:

  1. Working from a Release - these are pre-built zip packages found on ghost.org. Installation instructions are below.
  2. Working from the GitHub repo - instructions can be found in CONTRIBUTING.md

Installing from a Release

Please Note: Releases are pre-built packages, GitHub releases (tags) are not. To install from GitHub you need to follow the contributing guide.

  1. Once you've downloaded one of the releases, unzip it, and place the directory wherever you would like to run the code
  2. Fire up a terminal (or node command prompt in Windows) and change directory to the root of the Ghost application (where config.example.js and index.js are)
  3. run npm install --production to install the node dependencies
  4. To start ghost, run npm start
  5. Visit http://localhost:2368/ in your web browser

Updating with the latest changes

Warning: The Ghost file system contains your database and config. Be sure to back these up first.

  1. Make a backup of your data!
  2. Update the files by pasting new files over the top of old ones. If prompted by your OS or FTP client to 'merge' or 'replace' always choose 'merge'.
  3. Run npm install
  4. Run npm update
  5. Restart the application
  6. Log out and log back in again.

Logging in For The First Time

Once you have the Ghost server up and running, you should be able to navigate to http://localhost:2368/ghost/ from a web browser, where you will be prompted for a login.

  1. Click on the "register new user" link
  2. Enter your user details (careful here: There is no password reset yet!)
  3. Return to the login screen and use those details to log in.

Note - this is still very alpha. Not everything works yet.

Versioning

For transparency and insight into our release cycle, and for striving to maintain backward compatibility, Ghost will be maintained according to the Semantic Versioning guidelines as much as possible.

Releases will be numbered with the following format:

<major>.<minor>.<patch>-<build>

Constructed with the following guidelines:

  • A new major release indicates a large change where backwards compatibility is broken.
  • A new minor release indicates a normal change that maintains backwards compatibility.
  • A new patch release indicates a bugfix or small change which does not affect compatibility.
  • A new build release indicates this is a pre-release of the version.

Reporting Bugs and Contributing Code

Want to report a bug, request a feature, or help us build Ghost? Check out our in depth guide to Contributing to Ghost. We need all the help we can get!

Community

Keep track of Ghost development and Ghost community activity.

Copyright (C) 2013 The Ghost Foundation - Released under the MIT Lincense.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.