Re: [web2py] Is it possible to compress the output html before rendering out?

2011-10-27 Thread Marco Tulio Cicero de M. Porto
like the uglifier on Ruby?

2011/10/21 Farsheed Ashouri 

> Is it possible to compress the output html before rendering out? I mean
> using tools like compressors or tiddy to clean/compress the output code
> automatically on output not on our source.
>
>


-- 
[]'s
Marco Tulio


[web2py] Re: web2py, amazon ec2 and static pages outside of the application

2011-12-08 Thread Marco Tulio Cicero de M. Porto
well, about this: I created an application called "maps" and moved the
whole php application to
/home/www-data/web2py/applications/maps/static/i3geo so that, now instead
of http://servername.com/i3geo I have
http://servername.com/maps/static/i3geo wich ends up working since I can
see the static files and they seem to be running fine. On the other hand,
I'll have to configure that application (php one), in order to work with
the new path... If anyone thinks of another way of making this work, I

2011/12/8 Marco Tulio Cicero de M. Porto 

> Hi there!
>
> ok, here's the deal:
>
> I installed web2py on ec2 following the instructions on the attached file.
> So far so good. I had it installed and working perfectly.
>
> Thing is that now, I want to use on that same server a geoprocessing
> application that will read from the databases I created with my web2py
> applications.
> This geoprocessing tool (i3geo), was made with PHP and works well when
> installed on another server.
>
> But on when I try to put them togheter, I won't be able to see the
> geoprocessing tool.
>
> At first, I thought I should put the application on /var/www
> (/var/www/i3geo for ex), but it wouldn't read the pages there... then I
> remembered that when I was installing web2py there, I placed it on
> /home/www-data/web2py and that all of it's applications are under that (
> /home/www-data/web2py/applications/app_name for ex) then I tried to create
> a directory with a hello world on it and place it there. Couldn't read it.
>
> Well, problem: I can make applications with web2py that'll run smoothly on
> ec2. But I'm not beeing able to publish anything else (not a single html)
> on that server.
>
> Any hints?
>
> Thanks in advanced,
> Marco Tulio
>
> --
> []'s
> Marco Tulio
>



-- 
[]'s
Marco Tulio


[web2py] Re: web2py, amazon ec2 and static pages outside of the application

2011-12-08 Thread Marco Tulio Cicero de M. Porto
I'd appreciate, (that's what I was going to say when the mail was sent by
itself... :P :)

Thanks in advanced,
Marco Tulio

2011/12/8 Marco Tulio Cicero de M. Porto 

> well, about this: I created an application called "maps" and moved the
> whole php application to
> /home/www-data/web2py/applications/maps/static/i3geo so that, now instead
> of http://servername.com/i3geo I have
> http://servername.com/maps/static/i3geo wich ends up working since I can
> see the static files and they seem to be running fine. On the other hand,
> I'll have to configure that application (php one), in order to work with
> the new path... If anyone thinks of another way of making this work, I
>
> 2011/12/8 Marco Tulio Cicero de M. Porto 
>
>> Hi there!
>>
>> ok, here's the deal:
>>
>> I installed web2py on ec2 following the instructions on the attached
>> file.
>> So far so good. I had it installed and working perfectly.
>>
>> Thing is that now, I want to use on that same server a geoprocessing
>> application that will read from the databases I created with my web2py
>> applications.
>> This geoprocessing tool (i3geo), was made with PHP and works well when
>> installed on another server.
>>
>> But on when I try to put them togheter, I won't be able to see the
>> geoprocessing tool.
>>
>> At first, I thought I should put the application on /var/www
>> (/var/www/i3geo for ex), but it wouldn't read the pages there... then I
>> remembered that when I was installing web2py there, I placed it on
>> /home/www-data/web2py and that all of it's applications are under that (
>> /home/www-data/web2py/applications/app_name for ex) then I tried to create
>> a directory with a hello world on it and place it there. Couldn't read it.
>>
>> Well, problem: I can make applications with web2py that'll run smoothly
>> on ec2. But I'm not beeing able to publish anything else (not a single
>> html) on that server.
>>
>> Any hints?
>>
>> Thanks in advanced,
>> Marco Tulio
>>
>> --
>> []'s
>> Marco Tulio
>>
>
>
>
> --
> []'s
> Marco Tulio
>



-- 
[]'s
Marco Tulio


[web2py] Re: web2py, amazon ec2 and static pages outside of the application

2011-12-08 Thread Marco Tulio Cicero de M. Porto
I was wondering if there was any configuration on Apache that could help on
that, so that I could set the php application on www root and the web2py
applications on www-data ...

2011/12/8 Marco Tulio Cicero de M. Porto 

> I'd appreciate, (that's what I was going to say when the mail was sent by
> itself... :P :)
>
> Thanks in advanced,
> Marco Tulio
>
> 2011/12/8 Marco Tulio Cicero de M. Porto 
>
>> well, about this: I created an application called "maps" and moved the
>> whole php application to
>> /home/www-data/web2py/applications/maps/static/i3geo so that, now instead
>> of http://servername.com/i3geo I have
>> http://servername.com/maps/static/i3geo wich ends up working since I can
>> see the static files and they seem to be running fine. On the other hand,
>> I'll have to configure that application (php one), in order to work with
>> the new path... If anyone thinks of another way of making this work, I
>>
>> 2011/12/8 Marco Tulio Cicero de M. Porto 
>>
>>> Hi there!
>>>
>>> ok, here's the deal:
>>>
>>> I installed web2py on ec2 following the instructions on the attached
>>> file.
>>> So far so good. I had it installed and working perfectly.
>>>
>>> Thing is that now, I want to use on that same server a geoprocessing
>>> application that will read from the databases I created with my web2py
>>> applications.
>>> This geoprocessing tool (i3geo), was made with PHP and works well when
>>> installed on another server.
>>>
>>> But on when I try to put them togheter, I won't be able to see the
>>> geoprocessing tool.
>>>
>>> At first, I thought I should put the application on /var/www
>>> (/var/www/i3geo for ex), but it wouldn't read the pages there... then I
>>> remembered that when I was installing web2py there, I placed it on
>>> /home/www-data/web2py and that all of it's applications are under that (
>>> /home/www-data/web2py/applications/app_name for ex) then I tried to create
>>> a directory with a hello world on it and place it there. Couldn't read it.
>>>
>>> Well, problem: I can make applications with web2py that'll run smoothly
>>> on ec2. But I'm not beeing able to publish anything else (not a single
>>> html) on that server.
>>>
>>> Any hints?
>>>
>>> Thanks in advanced,
>>> Marco Tulio
>>>
>>> --
>>> []'s
>>> Marco Tulio
>>>
>>
>>
>>
>> --
>> []'s
>> Marco Tulio
>>
>
>
>
> --
> []'s
> Marco Tulio
>



-- 
[]'s
Marco Tulio


[web2py] Geoprocessing tools and web2py

2011-12-10 Thread Marco Tulio Cicero de M. Porto
Do you guys know of any geoprocessing tools that work with web2py? I'm
using i3geo, but it's php and I'd like, if possible that the tool
was designed to work with web2py or even django... I've heard there was
something made for django, but couldn't find it... saw something about one
called mapfish, but if any of you have worked with geoprocessing tools, and
have them working, I'd like to know...

thanks in advanced,
Cheers,
Marco Tulio


Re: [web2py] My new site powered by Web2Py

2012-03-16 Thread Marco Tulio Cicero de M. Porto
Hi,
I saw your post on the web2py list, and I'm trying to run nginx+uwsgi on
ubuntu running on EC2.
I used the script that comes with web2py, and it installed ok, but it won't
allow me to create a new app.
Do you happen to know why or how I solve this?

Thanks in advanced!

2012/2/15 Matt Doiron 

> Hi all,
> I've been learning web2py for the last few months and put together a site
> that I hope to grow into a useful service. Because it's based on web2py and
> uses various other tools common to the web world, I thought I would post a
> link here. I would also love any feedback anyone had about it! The site is
> built on web2py running on nginx+uwsgi and uses a various tools like
> celery, mongodb, redis, OAuth, postgresql, twilio as well as twitter and
> facebook apis.
>
> The site is basically a queue scheduler - where the queues are lists of
> web-related tasks like sending an email, SMS or posting on twitter, etc.
> For now the interactions with the queues are fairly basic, but I hope to
> add more advanced functions in the future. The site is called QueueBot an a
> brief description is as follows:
>
>> Queues are the heart of QueueBot. Assign actions to a queue from the
>> range of possible tasks, such as posting on Twitter or sending a text
>> message, and they will be executed in order at regular intervals or on a
>> schedule.
>>
>
> Matt
>



-- 
[]'s
Marco Tulio


[web2py] Nginx and Web2py

2012-03-16 Thread Marco Tulio Cicero de M. Porto
Hi!

I was having trouble on running web2py on nginx, but then I ran the script
that comes within web2py and it installed.
After that, I tried creating an app, but it didn't work.
Then I stopped the server and started web2py like this:
python2.6 web2py.py
and then restarted nginx.
I was able to create my apps.

But I don't know why and it bugs me.
I want use that for production, but not sure if I can use it like that.

Any ideias?

Thanks!

-- 
[]'s
Marco Tulio


Re: [web2py] Re: Nginx and Web2py

2012-03-19 Thread Marco Tulio Cicero de M. Porto
Thanks for all the answers.

As I said before, I used the script that comes with web2py ( web2py/scripts
directory).

Installed and ran nginx and uwsgi right away.

What didn't work was the creation of new apps from admin interface. At
least not untill I started web2py manually (python2.6 web2py.py).

This is not a production server yet. I'm testing installation of web2py on
nginx and performance. If everything goes well, I'd like to get my apps
running on it.

I've read many good things about nginx (specially when it comes to use on
VPS), so I'm interested on it.

And since we're on the subject, those who are using nginx today. What do
you think about it ?

I'll do a few more tests and see if things run smoothly. If they do, I'll
probably use it.


Thanks for all the help!

(I'll use Bruno's and Bruce's answers as references).

Cheers,
Marco




2012/3/17 Bruce Wade 

> Ubuntu 11.10, setup-web2py-nginx-uwsgi-ubuntu.sh. When it didn't work I
> changed the file and submitted it back to the community.
>
> The install for uwsgi-python doesn't work instead you need to change to:
> apt-get -y install uwsgi uwsgi-plugin-python
>
> Then update the path you save the configuration file from:
> /etc/uwsgi-python/apps-available.
> to
> /etc/*uwsgi*/apps-available..
>
> I also changed the user/group from www-data to a custom one to make
> deployment much smother
>
> Finally had to update the command that starts uwsgi from
> /etc/init.d/uwsgi-python restart
> to
> /etc/init.d/*uwsgi* restart
>
> On Sat, Mar 17, 2012 at 1:26 AM, pbreit  wrote:
>
>> What script did you use? What server are you on? What did it do when it
>> "didn't work"?
>
>
>
>
> --
> --
> Regards,
> Bruce Wade
> http://ca.linkedin.com/in/brucelwade
> http://www.wadecybertech.com
> http://www.warplydesigned.com
> http://www.fitnessfriendsfinder.com
>



-- 
[]'s
Marco Tulio


[web2py] Package max file size

2012-03-21 Thread Marco Tulio Cicero de M. Porto
Hi,

Packages are a really cool feature.
They allow you to backup your application (including all the tables, views,
controllers, and also static files, uploads etc).

I made an application that has some static maps (png images), and also made
a few pdf files available for download.

What happens is that my application itself is really small.

But the static files (pdf) and the images that I made available (when I
created an "upload" field) make the size of the
package created really large (about 80Mb).

And now when I try to backup my app, web2py  fails on creating the package.
Although it doesn't say it, I do believe it's about the size of the
package itself.

So, first question is : is there a limit for the size of the package?

If so, how we deal with applications that'll need to use lots of images?

Thanks in advanced.



-- 
[]'s
Marco Tulio


[web2py] sqlite on production

2012-03-21 Thread Marco Tulio Cicero de M. Porto
is it ok to use sqlite for production?

or is that not recommended?

-- 
[]'s
Marco Tulio


Re: [web2py] Re: Package max file size

2012-03-22 Thread Marco Tulio Cicero de M. Porto
Could it be a limitation on the "max file size"  on apache then?

I saw something similar on Nginx (had to manually add on the config file a
configuration with the maximum file size).

Thanks for the atention,
Marco Tulio

2012/3/22 Massimo Di Pierro 

> They are tar gzipped files. I do not know if there is a limit. If there is
> a very large.
>
> On Wednesday, 21 March 2012 09:20:12 UTC-5, Marco Tulio wrote:
>>
>> Hi,
>>
>> Packages are a really cool feature.
>> They allow you to backup your application (including all the tables,
>> views, controllers, and also static files, uploads etc).
>>
>> I made an application that has some static maps (png images), and also
>> made a few pdf files available for download.
>>
>> What happens is that my application itself is really small.
>>
>> But the static files (pdf) and the images that I made available (when I
>> created an "upload" field) make the size of the
>> package created really large (about 80Mb).
>>
>> And now when I try to backup my app, web2py  fails on creating the
>> package. Although it doesn't say it, I do believe it's about the size of the
>> package itself.
>>
>> So, first question is : is there a limit for the size of the package?
>>
>> If so, how we deal with applications that'll need to use lots of images?
>>
>> Thanks in advanced.
>>
>>
>>
>> --
>> []'s
>> Marco Tulio
>>
>


-- 
[]'s
Marco Tulio


[web2py] sqlite to postgres

2012-03-27 Thread Marco Tulio Cicero de M. Porto
Hi!

I was using sqlite as my database for a few projects, but decided to go to
postgres.

While to web2py going from one to another is pretty much a connection
string that you'll change, there's still one problem remaining.

How do I get the data that was on my app (on the sqlite database).

On a small application, I managed to do that by exporting a csv file on the
old app and importing it on the new one. And that's it.

But I have another app that has quite a few tables now... wich means that
I'd have to copy several cvs and import them.

Question is: isn't there an easier way to do it? (to backup a sqlite
database and restore it as postgres in one piece?)

If there isn't, that means that worst case scenario, I'll have to
export/import csv's corresponding to my tables. I can do that...
but there really isn't another way ?

Thanks!
-- 
[]'s
Marco Tulio


Re: [web2py] Re: sqlite to postgres

2012-03-28 Thread Marco Tulio Cicero de M. Porto
That sounds what I need

but:

ubuntu@ip:/home/www-data/web2py$ python scripts/cpdb.py -h
Traceback (most recent call last):
  File "scripts/cpdb.py", line 5, in 
import argparse
ImportError: No module named argparse

then I read somewhere this:


1down vote

The argparse module was added in Python 2.7.
http://docs.python.org/library/argparse.html

Prior to 2.7, the most common way to handle command-line arguments was
probably getopt.http://docs.python.org/library/getopt.html

Of course you can always handle the command-line manually simply by looking
at sys.argv. Howevergetopt is a good abstraction layer, and argparse is
even better.

If you truly need argparse in older environments (debatable), there is a
Google Code project maintaining it, and you can include that in your
project. http://code.google.com/p/argparse/
link |improve this
answer

from:
http://stackoverflow.com/questions/7473609/argparse-python-modules-in-cli

And I'm like:
ubuntu@ip:~$ python
Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>

wich means it doesn't work because I just don't have it.

someone said this:

up vote3down vote

Well if the only thing you need is argparse (saw that in one of your
comments!) you could just do :

pip install argparse

This is not exactly an answer to the exact question :-) , but indeed if you
are only missing a few feature, many 2.7 features actually come from
independent projects and/or some compatibility packages can be found, eg:


Also from:
http://stackoverflow.com/questions/7473609/argparse-python-modules-in-cli

wich made me think that I'm using 2.6 while there's 2.7 and 3.2 out
there... should I consider upgrading python to a newer version or just get
the missing module?

Thanks in advanced!
Marco Tulio

2012/3/27 nick name 

> On Tuesday, March 27, 2012 11:26:17 AM UTC-4, Marco Tulio wrote:
>
>> How do I get the data that was on my app (on the sqlite database).
>
>
> Web2py comes with scripts/cpdb.py, which copies databases from one
> connection string to another with lots of other goodies.
>
> see
> http://web2py.com/books/default/chapter/29/6#Copy-data-from-one-db-into-another(if
>  it doesn't get you to the right place, look for "cpdb" in the page)
>



-- 
[]'s
Marco Tulio


Re: [web2py] Re: sqlite to postgres

2012-03-28 Thread Marco Tulio Cicero de M. Porto
seems to work, but I still couldn't make it work on my project (worked well
on smaller projects though)

2012/3/27 Anthony 

> http://web2py.com/books/default/chapter/29/6#CSV-(all-tables-at-once)
>
>
> On Tuesday, March 27, 2012 11:26:17 AM UTC-4, Marco Tulio wrote:
>>
>> Hi!
>>
>> I was using sqlite as my database for a few projects, but decided to go
>> to postgres.
>>
>> While to web2py going from one to another is pretty much a connection
>> string that you'll change, there's still one problem remaining.
>>
>> How do I get the data that was on my app (on the sqlite database).
>>
>> On a small application, I managed to do that by exporting a csv file on
>> the old app and importing it on the new one. And that's it.
>>
>> But I have another app that has quite a few tables now... wich means that
>> I'd have to copy several cvs and import them.
>>
>> Question is: isn't there an easier way to do it? (to backup a sqlite
>> database and restore it as postgres in one piece?)
>>
>> If there isn't, that means that worst case scenario, I'll have to
>> export/import csv's corresponding to my tables. I can do that...
>> but there really isn't another way ?
>>
>> Thanks!
>> --
>> []'s
>> Marco Tulio
>>
>>


-- 
[]'s
Marco Tulio


[web2py] 2.6, 2.7, 3.2, PyPy ... wich one to use?

2012-03-28 Thread Marco Tulio Cicero de M. Porto
and that's it...

2.6, 2.7, 3.2, PyPy ... wich one to use (for production on ubuntu linux)?

-- 
[]'s
Marco Tulio


Re: [web2py] Is there anyone using Linode to host Web2py??

2012-04-13 Thread Marco Tulio Cicero de M. Porto
2012/4/6 Bruce Wade 

> That script doesnt work on newer ubuntu versions uwsgi-python should just
> be uwsgi. Tried on 11.10 and 12.04 both failed.
>
I was using 10.04, then I upgraded it to 11.10 and now it doesn't works
anymore...

why? :P


Re: [web2py] Setup virtual hosting with Web2py and apache2 mod wsgi on Ubuntu server 11.10

2012-04-13 Thread Marco Tulio Cicero de M. Porto
where ?

2012/2/8 Bruce Wade 

> Also if you want to use uwsgi + nginx I supplied an updated script in a
> past post that works with Ubuntu 11.10 the default one that came with my
> version of web2py didn't work with Ubuntu 11.10
>


Re: [web2py] Setup virtual hosting with Web2py and apache2 mod wsgi on Ubuntu server 11.10

2012-04-13 Thread Marco Tulio Cicero de M. Porto
Dude, worked like a charm, I own you. :)

But it would be nice if this kind of change was also available at web2py
scripts... since the other does not work to all versions of ubuntu for ex.

Thanks!
Marco Tulio

2012/4/13 Bruce Wade 

> You will have to search through the mail list on google.
>
> https://groups.google.com/forum/#!searchin/web2py/nginx$20update/web2py/ysmeR0mZVZo/nOBTKhPOgi8J
>
> If that doesn't work search for:
> Updated: uwsgi + nginx script for Ubuntu 11.10
>
>
> On Fri, Apr 13, 2012 at 5:48 AM, Marco Tulio Cicero de M. Porto <
> mtcpo...@gmail.com> wrote:
>
>> where ?
>>
>>
>> 2012/2/8 Bruce Wade 
>>
>>> Also if you want to use uwsgi + nginx I supplied an updated script in a
>>> past post that works with Ubuntu 11.10 the default one that came with my
>>> version of web2py didn't work with Ubuntu 11.10
>>>
>>
>
>
> --
> --
> Regards,
> Bruce Wade
> http://ca.linkedin.com/in/brucelwade
> http://www.wadecybertech.com
> http://www.fittraineronline.com - Fitness Personal Trainers Online
> http://www.warplydesigned.com
>
>


-- 
[]'s
Marco Tulio


Re: [web2py] nginx uwsgi error 502 bad gate way

2012-05-17 Thread Marco Tulio Cicero de M. Porto
Hi!

Not sure if it's your case.
I had a similar problem, asked around and Bruce Wade told me that there
were a few changes on uwsgi on ubuntu, so he changed the installation
script a bit and posted it on the list.

The link is:

https://groups.google.com/forum/#!searchin/web2py/nginx$20update/web2py/ysmeR0mZVZo/nOBTKhPOgi8J

Worked for me.
Hope it works for you too.

Cheers,
Marco Tulio
2012/5/16 Lewis 

> Guys, I have followed the cookbook, the posts here, and a posting at
> stackoverflow.
>
> I am getting error 502 bad gateway.  My stuff looks like everyone else's
> but there are deeper layers of indirection in uwsgi itself and nginx.  I
> have several uwsgi sym links in /etc/init.dIt is not clear which is the
> "real" one and how to invoke it.
>
> Here is the error from the nginx log.  I guess I interpret this to mean
> that nginx can't find uwsgi:
>
> 2012/05/16 22:53:29 [error] 2460#0: *1 connect() failed (111: Connection
> refused) while connecting to upstream, client: 76.104.195.84, server:
> www.lewcl.com, request: "GET / HTTP/1.1", upstream: "uwsgi://
> 127.0.0.1:9001", host: "www.lewcl.com"
>
> I have no clue what to do.
>
> Guys, I think that python and web2py have a profoundly serious problem
> with config.  Documentation is often wrong--a single punctuation mark,
> directory or option being off means it won't work.  If we have that in our
> Python code it won't run, but we have great traceback and debugging tools
> to tell us exactly where the error is and often what the error is. But when
> one of 5 or 6 text files scattered across the file system is wrong, all we
> find out is that it won't run.  There are no diagnostics (or very course
> ones like "error").  I'd like to work with some people in the community to
> redo a lot of the guides and get them to be accurate.
>
> I don't think script files are much of a solution (except as a way to
> document something that once worked on some arbitrary system).  Running an
> arbitrary script file blindly can do serious harm to your environment.
> Script files are not fully debugged and recoverable setup programs.
>  "Setup" is one of the hardest things to do right.  It is not a throw-away
> task to be done at the end of the project.
>



-- 
[]'s
Marco Tulio


Re: [web2py] cool new wysiwyg editor

2012-05-29 Thread Marco Tulio Cicero de M. Porto
That or they mean that they'll never do it.

2012/5/28 Massimo Di Pierro 

>
>
> On Monday, 28 May 2012 17:51:02 UTC-5, Vasile Ermicioi wrote:
>>
>> and no font name, font size
>
>
> That's a plus. It should he handled by css.
>
>
>>
>> I will wait a few  releases until they will conquer the world
>> http://redactorjs.com/**roadmap/ 
>>
>
> Why does "conquer world" come before "module for drupal"? Must be really
> difficult to make a module for Drupal.
>



-- 
[]'s
Marco Tulio


Re: [web2py] cool new wysiwyg editor

2012-05-30 Thread Marco Tulio Cicero de M. Porto
http://xing.github.com/wysihtml5/

Another one...

2012/5/29 Marco Tulio Cicero de M. Porto 

> That or they mean that they'll never do it.
>
>
> 2012/5/28 Massimo Di Pierro 
>
>>
>>
>> On Monday, 28 May 2012 17:51:02 UTC-5, Vasile Ermicioi wrote:
>>>
>>> and no font name, font size
>>
>>
>> That's a plus. It should he handled by css.
>>
>>
>>>
>>> I will wait a few  releases until they will conquer the world
>>> http://redactorjs.com/**roadmap/ <http://redactorjs.com/roadmap/>
>>>
>>
>> Why does "conquer world" come before "module for drupal"? Must be really
>> difficult to make a module for Drupal.
>>
>
>
>
> --
> []'s
> Marco Tulio
>



-- 
[]'s
Marco Tulio


Re: [web2py] Re: Nginx-uwsgi problem.

2012-06-12 Thread Marco Tulio Cicero de M. Porto
We've been testing NginX for a while now, but we're still not using it on
production.
We've used a script from this group to install/configure nginx/web2py/uwsgi.
This script created a web2py configuration file on sites-available with
configurations for HTTP and HTTPS.
The one error message we get is error 504.
But this don't happen often. When we have something small, it works fine.
Get something a little bigger and it starts.
In the example Ovidio told you, there's this 1 web app that has around 51
tables and it's getting a little big...
When we try to acess the application for the first time (through browser),
it'll wait for a few seconds and eventually end up with a 504 error.
After that, we need to restart uwsgi to make other apps work again .

I'll take a look on the log and conf files to share.

Cheers!

2012/6/11 pbreit 

> Probably going to need a lot more information. Have you used Nginx before?
> What does nginx.conf look like? Are you getting any error messages? Nginx
> error log? Do you have to kill nginx, uwsgi or web2py to run again?




-- 
[]'s
Marco Tulio


Re: [web2py] Connection with DB not Working... Help!

2012-07-01 Thread Marco Tulio Cicero de M. Porto
Just to be sure,

is your postgres configured properly? Postgres need a few adjustments on
some config files in order to grant access to the database (specially if
it's an external access - other than localhost).

Just check that first, ok ?

Good Luck!


2012/7/1 Yannick 

> Hello Mate,
>
> I can't seems to connect to my DB postgres from my application in  a linux
> box... Here is the error message I have:
>
> File "/home/www-data/web2py/gluon/dal.py", line 3665, in __init__
> raise RuntimeError, "Failure to connect, tried 5 times:\n%s" % error
> RuntimeError: Failure to connect, tried 5 times:
> could not connect to server: Connection refused
> Is the server running on host "localhost" and accepting
> TCP/IP connections on port 5432?
>
>
> Please let me know if you have any idea why...
>
> Thanks
>
>
>


-- 
[]'s
Marco Tulio