WebFaction
Community site: login faq
1
1

I have a webapp I've written in Java using the Play! framework (http://www.playframework.org) that I'm hoping to deploy on my webfaction account. I come from a PHP background, so these instructions (http://www.playframework.org/documentation/1.1/production) Are pretty much meaningless to me. I see Java 1.6.0 is installed on my webhost server, so what configuration do I need to do to get my Java/Play! webapp up and running?

EDIT: I stumbled across the page below in the interim, but I downloaded and installed Play! to my account, and get the following error:

~        _            _ 
~  _ __ | | __ _ _  _| |
~ | '_ \| |/ _' | || |_|
~ |  __/|_|\____|\__ (_)
~ |_|            |__/   
~
~ play! 1.1, http://www.playframework.org
~
Traceback (most recent call last):
  File "/home/fawmorg/lib/play-1.1/play", line 96, in ?
    cmdloader = CommandLoader(play_env["basedir"])
  File "/home/fawmorg/lib/play-1.1/framework/pym/play/cmdloader.py", line 9, in __init__
    self.load_core()
  File "/home/fawmorg/lib/play-1.1/framework/pym/play/cmdloader.py", line 15, in load_core
    mod = load_python_module(name, self.path)
  File "/home/fawmorg/lib/play-1.1/framework/pym/play/cmdloader.py", line 39, in load_python_module
    return imp.load_module(name, mod_desc[0], mod_desc[1], mod_desc[2])
  File "/home/fawmorg/lib/play-1.1/framework/pym/play/commands/modulesrepo.py", line 106
    done = self.proc(bits, filesize) if bits != filesize else 100
                                  ^
SyntaxError: invalid syntax

Looks like valid python syntax to me, though. No problems on my own computer (python 2.5.4), but there seem to be issues on webfaction (python 2.4.3)? Any ideas?

asked 02 Dec '10, 18:17

fawmorg
2114
accept rate: 0%

edited 02 Dec '10, 18:58


I can't tell you anything specifically about Play, since I've never heard of it until just now. :) If somebody else knows more about it, feel free to edit this.

Here are some general instructions for any custom app that runs listening on a port. After you create your custom app, make a note of its assigned port number, configure your Play app to run on that port, and then start it. Adding your custom app to a site will take care of the web server configuration stuff.

permanent link
This answer is marked "community wiki".

answered 02 Dec '10, 18:32

seanf
12.2k41836
accept rate: 37%

That particular "x if y else z" construct requires Python 2.5 or higher, so be sure to use the python2.5 command to invoke your script.

(02 Dec '10, 18:55) seanf

success! thanks.

(02 Dec '10, 19:01) fawmorg

You're very welcome! :)

(02 Dec '10, 19:03) seanf
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×22
×3

question asked: 02 Dec '10, 18:17

question was seen: 3,347 times

last updated: 02 Dec '10, 19:03

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM