Tools
- emacs.
- python25 or python27.
- GoogleAppEngine.
- appengine-emacs-toolkit. This toolkit can help to create project, start app server, browse in browser and upload.
Install
- Unzip emacs.
- Install python25 or python27 or both. Write python's folder to system path or emacs's path(refer to: Set up python in emacs).
- Install GoogleAppEngine.
- Clone appengine-emacs-toolkit repository or download and unzip appengine-emacs-toolkitV1.0.zip file.
Usage
- Run emacs.
- Copy appengine-emacs-toolkit to your emacs's load-path. Add following code to .emacs file.
(setq gae-root-path (concat program-path"google_appengine/")) (setq gae-priority-python-version "27") (add-to-list 'load-path (concat plugin-p ath "appengine-emacs-toolkit")) (require 'appyaml-mode) (add-hook 'appyaml-mode-hook (lambda () (progn (local-set-key "\C-cc" 'gae-start-appserver) (local-set-key "\C-cb" 'gae-browse-appserver) (local-set-key "\C-cu" 'gae-update-appserver))))
The gae-root-path is your GoogleAppEngine's Installation path. plugin-path is where you put appengine-emacs-toolkit(e.g. d:/home/emacs-23/site-lisp/).
- Restart emacs.
- Call gae-new-project command in minibuffer. Input new project's path, name and python's version.
- New app.yaml file is open. Call gae-start-appserver command.
- Then a shell buffer came up. Run gae-start-appserver command or browse http://localhost:8001 manually.
No comments:
Post a Comment