Wednesday, February 6, 2019

Re: settings.py work in local but not on the server

Thank you both for yours answers.

Gil : 
I checked again using ftp, git pushed everything correctly, so the error don't come from that.

Jeremy :
I tried to comment the application in wsgi.py, nothing changed server-side
#application = get_wsgi_application()

Doing this, I saw that appear (cf bold) :
sent 75,631,757 bytes  received 165,829 bytes  1,783,472.61 bytes/sec
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1196) [sender=3.1.2]
total size
is 74,952,802  speedup is 0.99
sending incremental file list
.gitignore
README
.md
requirements
.txt
wsgi
.py
static/images/usitoo.png
usitoo
/manage.py
usitoo
/polls/__init__.py
usitoo
/polls/{all files regarding polls}
usitoo
/usitoo/__init__.py
usitoo
/usitoo/settings.py
usitoo
/usitoo/urls.py


sent
79,452 bytes  received 811 bytes  160,526.00 bytes/sec
total size
is 76,074  speedup is 0.95
-----> Build complete
-----> Cleaning temporary files

I know wsgi.py should be by default in usitoo/usitoo/, but gandi's documentation said to put it here.
If I move it back, it is correctly place on the file list, but the error persist.

I didn't have the rsync error before, but cannot replicate that even when uncommenting back wsgi.py

I also tried to deploy like this :
ssh {xxxxxxx}@git.sd3.gpaas.net deploy default.git > output.txt 2> errors.txt
errors.txt stay empty, and I cannot put -v flag on the command

I contacted gandi's support to see if they could help.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/61045139-29b9-4279-a028-38ffc9f240ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment