Closed sheoranjs24 closed 9 years ago
@sheoranjs24 Sorry it took me so long to get to this! I've been pretty busy, and have just been picking away at protractor test cases when I have spare moments.
Since @CakeBrewery is our deployment person, I'll get him to look this over as well, but everything looks good
Noted. I can't go over it today but I will take a look. Thanks for doing this, it looks good
On Fri, Jan 2, 2015, 6:24 AM Scott Low notifications@github.com wrote:
@sheoranjs24 https://github.com/sheoranjs24 Sorry it took me so long to get to this! I've been pretty busy, and have just been picking away at protractor test cases when I have spare moments.
Since @CakeBrewery https://github.com/CakeBrewery is our deployment person, I'll get him to look this over as well, but everything looks good
— Reply to this email directly or view it on GitHub https://github.com/Clebeuf/beLocal/pull/128#issuecomment-68498757.
The symbolic link should be ln -s beLocal/bin/nginx.conf /etc/nginx/sites-enabled/beLocal.conf
enable => enabled. (Note that the first path must be absolute on Linux machines)
Also, inside your nginx.conf you have various paths that are specific to your file organization that everyone using this Nginx configuration might want to change according to theirs.
The Nginx configuration seems to be good but I still have a TON of client-side and Django bugs that started occurring recently. I am not sure if these are specific to my machines and/or related to this branch but if it works with Scott's I think it should be ok.
Thanks sam for pointing out the correct folder path. And yes one must make sure that the paths in nginx.conf file reflects the real paths in their system.
Solves issue #101
python manage.py runserver
.ln -s beLocal/bin/nginx.conf /etc/nginx/sites-enabled/beLocal.conf
[ For mac nginx directory is: /usr/local/etc/nginx/sites-enabled/beLocal.conf']sudo nginx start
[ For mac:sudo nginx
]sudo gunicorn server.wsgi:application --bind=localhost:8001
For deployment:
return 'https://belocalvictoria.me/api/';
If everything is working fine:
location \ { try_files $uri $uri/index.html @django; }