2
0
mirror of https://github.com/frappe/bench.git synced 2025-02-04 20:08:24 +00:00

602 Commits

Author SHA1 Message Date
Revant Nandgaonkar
080ca173a6 ran 2to3 script (#381)
* ran 2to3 script

* Correct urllib.parse import

* Backward compatible urllib import

* removed test_setup_production_v6
2017-04-17 17:28:18 +05:30
Makarand Bauskar
a1587b783f [fixes] fixes in pull_all_apps so, bench update can backup and sync sites (#376) 2017-04-07 17:18:21 +05:30
robert schouten
c6e7477abf [hotfix] fix update reset (#374)
@rmehta
2017-04-07 13:33:25 +05:30
Faris Ansari
7946d17cc1 less verbose app install (#369) 2017-04-05 12:17:22 +05:30
ckosiegbu
4eef5d1b1a Update pull_all_apps to use regex for check (#373)
pull_all_apps calls a "git status" and checks if the response contains "nothing to commit, working directory clean". However, it seems that at least some versions of git output the message "nothing to commit, working directory clean". This causes bench update to not work in systems where the output message uses "tree" instead of "directory". This update is to allow both strings to be used.
2017-04-05 12:16:58 +05:30
Rushabh Mehta
893b55991b fix message 2017-04-03 13:11:51 +05:30
Rushabh Mehta
4f37c6cf03 [enhance] check for uncommitted code before pulling 2017-04-03 12:56:53 +05:30
Saurabh
44d6e783e6 [fix] check shallow clone param in common site config too 2017-02-02 11:42:39 +05:30
shreyas
1c5daf646a [Fix] Max memory given to redis cache should be dependent on virtual of the machine 2016-11-14 17:29:42 +05:30
robert schouten
cd877e19cc [feature] add reset option to update (#343)
* [feature] add reset option to update

* fix for restarting update
2016-11-07 17:23:25 +05:30
Valmik Jangla
366d3aa8c5 Fixed incorrect docstring
Changed run_playbook function for consistency with existing code
2016-10-21 03:48:18 -07:00
Valmik Jangla
2e9cfa5d02 Added command to change SSH port 2016-10-19 05:31:42 -07:00
Rushabh Mehta
786b997dc3 [minor] dont show CommandFailedError trace 2016-10-18 17:50:27 +05:30
Valmik
97d44518d3 Added command to setup firewall (#326)
* Added command to setup firewall

* Added validation to check for ansible, added ufw for ubuntu and debian
2016-10-13 11:49:27 +05:30
Valmik
1783cbc84f Setup lets-encrypt for custom domains (#301) 2016-10-13 11:48:22 +05:30
Rushabh Mehta
14215b8551 Revert "DNS Multitenancy by default" (#328) 2016-10-08 16:00:19 +05:30
Valmik
888b72ca91 DNS Multitenancy by default (#324)
* dns multitenant by default

* [fix] silly typo
2016-10-06 14:50:46 +05:30
Rushabh Mehta
9fd73a738e [command] bench restart --web 2016-09-30 16:40:34 +05:30
Shreyas Patil
164bc13c95 Fix nodejs (#310)
* [Fix] Do not validate certificates while downloading node bash script

* [Fix] New nodejs installation procedure

* [Fix] Updated message for node update to use official node package manager scripts

* [Fix] Add travis build status to repo page
2016-09-12 11:19:34 +05:30
Rushabh Mehta
b07de2683a [minor] update get languages 2016-08-30 10:16:01 +05:30
Omar Altayyan
317cc26c2c fixed a bug in default port for a site (#300)
* fixed a bug in nginx config

i found a bug when the user of the bench is currently using a dns-multitenant setup and he has multiple sites, and then he decides to switch to multiport setup, then all the sites present on the server get assigned the same port "80" and you can't change the port of any site due to the exception "Port 80 is being used by..." 

so i fixed the bug by assigning a new port number that is not in use to every unassigned site, so afterwards the user can set his own custom port for each site without having to face this exception and failing at this task

* fixed a compile error

that's what knowing too much c-based languages doesn to you

* changed increment method

* added a better description for port conflic 

if you are using port-based multi-tenant setup, i have found that if your ports are set in the site_config.py of your sites, or you set the port manually by using set-nginx-port command, and you have a port conflict between sites, the exception message raised is not be very helpful especially if you have many sites in your setup, so i added a list of ports that are conflicted and at what sites

and the behavior of default port assignment is changed as follows:

at first, the first site created gets port number 80, and every other site will get a new sequential port number, then, if a port is set manually that was assigned automatically, the manually set port number is applied and the old site moves to a new port

but the conflict message only displays if two ports where manually (or in the site_config) assigned to a site, and the message will display the site names

* added a message displaying the current port to site setup

added a new message that displays the mappings between sites and ports if port multi-tenant setup is used

* fixed security error in browsers

some browsers prevent low numbered ports from being used, so instead of continuously assigning ports from 80 onward, we start at 80 and then jump to 8000, and then continue from there

* fixed a problem with start port

apparently setting a site at port 8000 breaks nginx, so i changed it to 8001

* changed naming scheme to snake case
2016-08-29 12:24:05 +05:30
Viet Pham
a6d9d158b4 Add git utility commands 2016-08-28 19:50:48 +07:00
mbauskar
4e75e24c85 [minor] minor fix in switch-to-v5 help message 2016-08-26 15:12:12 +05:30
Valmik Jangla
9ee235e509 [fix] install apps using apps.txt ordering 2016-08-23 13:40:34 +05:30
shreyas
92c097951f [Fix] Error 2016-08-10 15:15:27 +05:30
shreyas
90ea181c78 [Minor] Added command to restart on web workers for supervisor bench restart --web-workers 2016-08-10 15:06:13 +05:30
Rushabh Mehta
b34b1e1d27 Merge pull request #294 from frappe/develop
[feature] clone bench from existing bench by copying the git repo
2016-08-08 15:41:12 +05:30
Rushabh Mehta
35cc6f608e [feature] clone bench from existing bench by copying the git repo 2016-08-08 14:59:58 +05:30
Neil Trini Lasrado
7c13d16a62 Fixed patch 2016-08-08 13:48:27 +05:30
Rushabh Mehta
73f74bd9bd Merge pull request #287 from shreyasp/bench/rate_limit_conn
[Fix] Add 'allow_rate_limiting' as common_site_config to generate nginx config as per requirement
2016-08-04 11:06:46 +05:30
Rushabh Mehta
26cac7173b Merge pull request #279 from vjFaLk/debian-installer
Debian installer support
2016-08-03 15:35:38 +05:30
shreyas
4e45c7b34b [Fix] Add 'allow_rate_limiting' as common_site_config to generate nginx config as per requirement 2016-08-03 14:54:45 +05:30
Valmik Jangla
d23d7489d7 Added macos support for version check 2016-08-03 01:29:34 -07:00
Rushabh Mehta
6bbf7c9ed1 [minor] set version 2016-08-03 12:56:35 +05:30
Valmik Jangla
13f6a57ce9 Update bench requirements when updating as well 2016-08-02 15:21:51 +05:30
Rushabh Mehta
1c4385bf9b Merge pull request #278 from shreyasp/bench/rate_limit_conn
[Minor] Nginx rate limiting and Improvements to Bench Installer
2016-08-01 16:55:44 +05:30
Valmik Jangla
03f6f3ff03 [fix] crontab entry for lets-encrypt 2016-07-30 14:30:22 -07:00
shreyas
0c95b6a564 [Fix] Travis CI failure fixes 2016-07-29 11:54:46 +05:30
shreyas
f9067f3d7a [Minor] Add rate limiting for bench 2016-07-28 17:55:08 +05:30
shreyas
20c24a3923 [Minor] Add limit_conn_zone to bench nginx config 2016-07-28 14:59:53 +05:30
Rushabh Mehta
44013a435f Merge pull request #276 from vjFaLk/test-fix
[travis] fix for setup_production_v6
2016-07-26 21:21:03 +05:30
shreyas
87414d218b [Fix] Add curl and wget to bench installer. Node v5 installer fixes 2016-07-26 13:37:06 +05:30
Rushabh Mehta
73a6593fb9 Merge branch 'develop' 2016-07-26 09:22:09 +05:30
Rushabh Mehta
40e2df9f2a [fix] typo #271 2016-07-26 08:53:21 +05:30
Rushabh Mehta
2e2ff56d0a Merge pull request #271 from shreyasp/bench/update-node-install
[Fix] Updated the patch to find node executable and installation instructions
2016-07-26 07:54:42 +05:30
shreyas
abc224f3e1 [Fix] Updated the patch to find node executable as well as provide installation instructions 2016-07-25 20:39:18 +05:30
Valmik Jangla
91d239bcd4 [travis] fix for setup_production_v6 2016-07-25 18:36:08 +05:30
Rushabh Mehta
8dd4672e3c Merge pull request #270 from shreyasp/bench/update-node-install
[Fix] Updated ansible to install node 5 using install script
2016-07-25 18:21:32 +05:30
shreyas
be1f23a602 [Fix] Updated ansible to install node 5 using install script 2016-07-25 16:26:30 +05:30
Anand Doshi
fb5bf3edb4 [fix] ssl on 2016-07-25 15:40:07 +05:30