Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-11-08 Thread Lawrence Goh
the database, it has this error. >>>>>>>>>> >>>>>>>>>> arches | FATAL: Invalid Username specified. Please >>>>>>>>>> check the Username and retry connection. The Username should be in >>>>>&

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-11-08 Thread Vincent Meijer
;>> Any idea where in the code is going nuts? :) >>>>>>>>> >>>>>>>>> Thanks. >>>>>>>>> >>>>>>>>> Regards, >>>>>>>>> Lawrence >>>>&g

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-11-06 Thread Lawrence Goh
;>>>>> >>>>>>>>> Hi Vincent, >>>>>>>>> >>>>>>>>> Been digging further into the postgres libs. It seems the dsn and >>>>>>>>> kwargs in them are getting values from the 's >>

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-11-05 Thread Lawrence Goh
container, you would >>>>>>>> be landed into \web_root\arches. Back down, it would be ENV, arches, >>>>>>>> folders. >>>>>>>> >>>>>>>> Probably I might need a new pull from arche

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-11-04 Thread Lawrence Goh
>>>>>>> Regards, >>>>>>> Lawrence >>>>>>> >>>>>>> >>>>>>> On Thu, Oct 25, 2018 at 5:30 AM Vincent Meijer >>>>>>> wrote: >>>>>>> >>>>>>&

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-11-04 Thread Lawrence Goh
ent settings? >>>>>>> >>>>>>> There is also the option 'Enforce SSL Connection' under 'SSL >>>>>>> Settings' in your Azure DB. Is this set to Disabled? >>>>>>> >>>>>>> And can you connect to it from

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-11-02 Thread Vincent Meijer
>>>>>> Settings' in your Azure DB. Is this set to Disabled? >>>>>> >>>>>> And can you connect to it from your local machine if you whitelist >>>>>> your ip in that same screen? >>>>>> >>

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-31 Thread Lawrence Goh
t; sadly to nowhere. We have set up a Azure Database for Postgresql. We >>>>>> could get the docker compose to create the DB. But the arches container >>>>>> failed due to some weird network restriction. >>>>>> >>>>>> [im

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-30 Thread Vincent Meijer
vices" is on. >>>> >>>> Any ideas? >>>> >>>> Thanks. >>>> >>>> Regards, >>>> Lawrence >>>> >>>> On Fri, Oct 19, 2018 at 10:32 PM Vincent Meijer >>>> wrote: >>>>

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-25 Thread Lawrence Goh
;>> wrote: >>> >>>> Yeah it's a weird choice from Microsoft to do things differently and >>>> arches wasn't prepared for that @... >>>> >>>> >>>> >>>> On Fri, 19 Oct 2018, 11:23 larrygoh84, wrote: >>>>

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-25 Thread Lawrence Goh
>> >>> Yeah it's a weird choice from Microsoft to do things differently and >>> arches wasn't prepared for that @... >>> >>> >>> >>> On Fri, 19 Oct 2018, 11:23 larrygoh84, wrote: >>> >>>> using 4.3.1. does this mean

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-24 Thread Vincent Meijer
t;> >> On Fri, 19 Oct 2018, 11:23 larrygoh84, > >> wrote: >> >>> using 4.3.1. does this mean its a known issue? it doesn't handle the @ >>> well? :) >>> >>> ---- Original message ---- >>> From: Vincent Meijer >

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-24 Thread Vincent Meijer
> well? :) >>> >>> ---- Original message ---- >>> From: Vincent Meijer > >>> Date: 10/19/18 10:02 PM (GMT+12:00) >>> To: Arches Project > >>> Subject: Re: [Arches] Re: Hosting Arches on Azure as a Web App for >>&

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-23 Thread Lawrence Goh
Meijer >> Date: 10/19/18 10:02 PM (GMT+12:00) >> To: Arches Project >> Subject: Re: [Arches] Re: Hosting Arches on Azure as a Web App for >> Containers >> >> Which version of Arches are you using? >> I created a PR (for #4099) for this earlie

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-19 Thread Vincent Meijer
; From: Vincent Meijer > Date: 10/19/18 10:02 PM (GMT+12:00) > To: Arches Project > Subject: Re: [Arches] Re: Hosting Arches on Azure as a Web App for > Containers > > Which version of Arches are you using? > I created a PR (for #4099) for this earlier, but it was after 4.3.

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-19 Thread Vincent Meijer
Which version of Arches are you using? I created a PR (for #4099) for this earlier, but it was after 4.3.1 was released. Until the next release you could use the master branch (there are docker images built for that in Docker Hub for every new push:

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-18 Thread Lawrence Goh
Hi Vincent, Yups. Was poking around the codes yesterday and had a go with removing the staticfiles_storage and all went well :) Thanks. Regards, Lawrence On Thu, Oct 18, 2018 at 9:00 PM Vincent Meijer wrote: > If I'm understanding you correctly, you want to serve static files the >

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-18 Thread Vincent Meijer
If I'm understanding you correctly, you want to serve static files the 'standard' way (directly from the Arches app using Whitenoise) and serve uploaded files from Azure Blob Storage? I do the same at the moment. For that, use: DEFAULT_FILE_STORAGE='storages.backends.azure_storage.AzureStorage'

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-17 Thread Lawrence Goh
Hi Vincent, Thanks for that link. Will need to figure to adapt it for Azure use. Besides that, I noticed it loads all the static files into the blob. Was thinking to have the static files be in the container. Only push the uploaded 'media files' into the blob. I guess it doesn't do that

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-17 Thread Vincent Meijer
The collectfast package looks promising: https://stackoverflow.com/questions/16805232/faster-alternative-to-manage-py-collectstatic-w-s3boto-storage-backend-to-syn -- -- To post, send email to archesproject@googlegroups.com. To unsubscribe, send email to

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-17 Thread Vincent Meijer
I haven't, but now that you mention that it sounds familiar. I did notice that the collectstatic method takes very long when using blob storage for static files, I think sometimes even 30 minutes or so when running locally on my laptop. I think it has to do with the fact that it rechecks all the

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-17 Thread Lawrence Goh
Hi Vincent, I saw the post on static files with azure storage. Have you come across where the first time it loads all the files in the blob, but the container fails/gets stuck on the second time when it does the static files? Thanks. Regards, Lawrence On Tue, Oct 16, 2018, 10:46 PM Vincent

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-16 Thread Vincent Meijer
Sounds familiar, the loading of static files took a long time. Once they are cached everything is fine, but an initial page load of 2 minutes was a bit much in my opinion :) Azure CDN might help with that. Anyway, good luck and keep us posted! Vincent On Monday, 15 October 2018 22:58:48

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-15 Thread Lawrence Goh
Hi Vincent, We have yet to populate data within. So couldn't do much search though. However, I noticed on some devices it would be slow first time, while some just in a flash. Once it is loaded, the following sessions is like a breeze. Now we are trying to create a blob storage for the media

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-15 Thread Vincent Meijer
How is Web App's performance for you? How long does a GET request of e.g. the /search page take? Best, Vincent -- -- To post, send email to archesproject@googlegroups.com. To unsubscribe, send email to archesproject+unsubscr...@googlegroups.com. For more information, visit

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-12 Thread Vincent Meijer
Excellent news, glad to hear it! On Fri, 12 Oct 2018, 02:41 Lawrence Goh, wrote: > Hi Vincent, > > Thank you so much for all the help and information. I finally got it > running on Azure. Adding on, I have changed the ports back to 8000:8000. > > Thanks again. > > Regards, > Lawrence > > On

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-11 Thread Lawrence Goh
Hi Vincent, Thank you so much for all the help and information. I finally got it running on Azure. Adding on, I have changed the ports back to 8000:8000. Thanks again. Regards, Lawrence On Thu, Oct 11, 2018 at 8:11 PM Vincent Meijer wrote: > In your case the Azure Web App takes on the role

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-11 Thread Vincent Meijer
In your case the Azure Web App takes on the role of Nginx, so you don't need that. Gunicorn is already built into the Arches image (see the command in the entrypoint.sh), which is going to talk to your Web App. Regarding whitenoise, you don't need to set STATIC_ROOT, as it is already set for

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-10 Thread Lawrence Goh
Hi Vincent, I found more info on gunicorn and nginx. it seems they need each other. https://stackoverflow.com/questions/12800862/how-to-make-django-serve-static-files-with-gunicorn What do you think? Thanks. Regards, Lawrence On Thu, Oct 11, 2018, 3:58 PM Lawrence Goh wrote: > Hi Vincent,

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-10 Thread Vincent Meijer
Ah, I think I know what the problem is. Didn't think of this before, but Django does not want to serve static files (css, js, images, etc) when in PROD mode (and DEBUG=False). There are two routes I can think of right now: 1. Set up White Noise to make Django serve static files

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-09 Thread Lawrence Goh
Hi Vincent, I guess I celebrated too early. I removed the cache and now the site on port 80 is broken as the images and JS are not downloaded. Any idea on this? Thanks. Regards, Lawrence On Wed, Oct 10, 2018 at 2:36 PM Lawrence Goh wrote: > Hi Vincent, > > Thanks a lot of the suggestion. I

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-09 Thread Lawrence Goh
Hi Vincent, Thanks a lot of the suggestion. I tried the suggestion on dumping nginx and changing the port number but I kept couchdb as it is though. It is working as a web app for containers using multi-container. Will put the single container approach on the pipeline :) Thanks again!

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-09 Thread Vincent Meijer
No worries, I come from a .net environment myself. As for the App Service, I realized that I set up Postgres and Elasticsearch separately, that is why I was able to use the Single Container approach (see below for future reference). I just remembered I wasn't able to get the docker-compose

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-09 Thread Lawrence Goh
Hi Vincent, Thanks for the reply. I am not so well verse in the web development in open source space. Last I knew something related was Apache :) Pardon my knowledge as I am from .net. Some help would be very much appreciated to implement this. Based on the docker compose file, we have these