Development version of Nagare

6 views
Skip to first unread message

Terrence Brannon

unread,
Apr 22, 2015, 5:07:03 PM4/22/15
to nagare...@googlegroups.com
I followed these instructions - http://www.nagare.org/trac/wiki/NagareInstallation

to install the development version of Nagare but I still got 0.4.1 and it still has that odd issue with issuing a redirect when you request an app without the trailing slash.

I thought following those instructions would give me the bleeding edge version (which would be in sync with the API docs).

Laurent Rahuel

unread,
Apr 22, 2015, 5:55:55 PM4/22/15
to nagare...@googlegroups.com
Hi Terrence,

Here is my installation steps:

mkdir install
cd install/
mkdir sources
cd sources/

Stackless

wget http://www.stackless.com/binaries/stackless-279-export.tar.xz
tar xjf stackless-279-export.tar.xz
cd stackless-279-export
./configure --prefix=`pwd`/../../python279 && make && make install


Virtualenv

cd ..
wget "https://pypi.python.org/packages/source/v/virtualenv/virtualenv-12.1.1.tar.gz#md5=901ecbf302f5de9fdb31d843290b7217 »
tar xzf virtualenv-12.1.1.tar.gz
`pwd`/../python279/bin/python virtualenv-12.1.1/virtualenv.py `pwd`/../venv/nagare
source `pwd`/../venv/nagare/bin/activate


Mercurial

easy_install mercurial


Nagare

hg clone http://hg.nagare.org/core nagare_core
cd nagare_core
python setup.py develop (your last line should end with nagare==0.4.1.post0)
easy_install 'nagare[full]'


=> Now your nagare developer version should be OK.



Creating an app and testing it

cd ..
nagare-admin create-app test
cd test
python setup.py develop
nagare-admin serve test


Testing /test url

wget -S -O /dev/null http://127.0.0.1:8080/test
--2015-04-22 23:54:14-- http://127.0.0.1:8080/test
Connecting to 127.0.0.1:8080... connected.
HTTP request sent, awaiting response...
HTTP/1.0 301 Moved Permanently
Server: PasteWSGIServer/0.5 Python/2.7.9
Date: Wed, 22 Apr 2015 21:54:14 GMT
Location: http://1,2,7,.,0,.,0,.,1,:,8,0,8,0/test/
Content-Length: 137
Content-Type: text/plain; charset=UTF-8
Location: http://1,2,7,.,0,.,0,.,1,:,8,0,8,0/test/ [following]
http://1,2,7,.,0,.,0,.,1,:,8,0,8,0/test/: Bad port number.

Sounds like you are right. There is something strange with this redirect URL : http://1,2,7,.,0,.,0,.,1,:,8,0,8,0/test/

And this one is working

wget -S -O /dev/null http://127.0.0.1:8080/test/
--2015-04-22 23:55:21-- http://127.0.0.1:8080/test/
Connecting to 127.0.0.1:8080... connected.
HTTP request sent, awaiting response...
HTTP/1.0 200 OK
Server: PasteWSGIServer/0.5 Python/2.7.9
Date: Wed, 22 Apr 2015 21:55:21 GMT
Set-Cookie: _nagare=4403154012767951; Path=/test/
Content-Length: 2045
Content-Type: text/html; charset=utf-8
Length: 2045 (2.0K) [text/html]
Saving to: '/dev/null'

/dev/null 100%[===============================================================>] 2.00K --.-KB/s in 0s

2015-04-22 23:55:21 (279 MB/s) - '/dev/null' saved [2045/2045]

We’ll take a look as soon as possible.

Regards,

Laurent
> --
> You received this message because you are subscribed to the Google Groups "Nagare users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to nagare-users...@googlegroups.com.
> To post to this group, send email to nagare...@googlegroups.com.
> Visit this group at http://groups.google.com/group/nagare-users.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages