Localhost auto update?

Dears,

Could my localhost system run auto update bench ?

@mahmoud use bench config auto_update on

1 Like

Path: /home/frappe/frappe-bench

Modify config.json file as follows, in most likely case this file is available on above mentioned Path, if installation done via bench auto installer script, in the case of manual installation method, you should find config.json file under frappe-bench directory.

/* comments */ in following config file are for information only, and should not be copy pasted directly to the actual file, as it may cause some issues, it is advised to use following information for understanding the structure of file and directives only

frappe@cloudvps:~/frappe-bench$ vi config.json 
{
 "rebase_on_pull": false, /* This is for those who are developing or modifying ERPNext in some sense to keep their changes but also update code updates coming from main repository of ERPNext or Frappe etc. */
 "serve_default_site": true, /* Serve either site1.local or any site under \/frappe-bench\/site\/ directory manually set default site using bench set-default-site command /*
 "restart_supervisor_on_update": true, /* for automatically restarting supervisor worker after each update */
 "auto_update": true, /* for auto update on daily basis */
 "update_bench_on_update": true, /* Auto update bench management tool as well while updating */
 "frappe_user": "frappe", /* Default OS User account, set and used for frappe and erpnext etc. */
 "shallow_clone": true, /* For developers, this is to limit the amount of history your clone will have */
}
1 Like

I applied the command and waiting for next update to see the result,Thanks.

Where is the config.json placed in version 6.27.6?

Its under …/sites/site1.local/ This new path is chaned under bench version 2.
But you can turn on off most of parameters using

bench --site site1.local config auto_update on

We got this error

Usage: bench frappe [OPTIONS] COMMAND [ARGS]…

Error: No such command “config”.

tried this? bench config auto_update on
can you confirm your bench version?

Yes and got the mentioned error

[http://discuss.frappe.io/user_avatar/discuss.frappe.io/yashodhan/45/1842_1.png] yashodhanhttp://mandrillapp.com/track/click/30309906/discuss.frappe.io?p=eyJzIjoiUllDZHc2d05qUDZLaDVXZHNzNkktTGRJM2NVIiwidiI6MSwicCI6IntcInVcIjozMDMwOTkwNixcInZcIjoxLFwidXJsXCI6XCJodHRwOlxcXC9cXFwvZGlzY3Vzcy5lcnBuZXh0LmNvbVxcXC91c2Vyc1xcXC95YXNob2RoYW5cIixcImlkXCI6XCJhZTYxNDY5YWZlMmQ0M2JjODc1ZDFmMzZhNDMwOGM0ZFwiLFwidXJsX2lkc1wiOltcIjE2YWEyYjA3OTY1MGRiNjljOTkzYWI5MjhjYThiODZlZTljZTczYTZcIl19In0
April 8

tried this? bench config auto_update on
can you confirm your bench version?

Visit Topichttp://mandrillapp.com/track/click/30309906/discuss.frappe.io?p=eyJzIjoiZXpvSjNDTV9Wc1hXRms1TktQOC1jVlowNnBNIiwidiI6MSwicCI6IntcInVcIjozMDMwOTkwNixcInZcIjoxLFwidXJsXCI6XCJodHRwOlxcXC9cXFwvZGlzY3Vzcy5lcnBuZXh0LmNvbVxcXC90XFxcL2xvY2FsaG9zdC1hdXRvLXVwZGF0ZVxcXC8xMDk0OVxcXC84XCIsXCJpZFwiOlwiYWU2MTQ2OWFmZTJkNDNiYzg3NWQxZjM2YTQzMDhjNGRcIixcInVybF9pZHNcIjpbXCJkZDJmNThkNDQ1NDgwNzk3OWJiMzQzNDk5MmZlMjI5MzhlNWIzYTQ2XCJdfSJ9 or reply to this email to respond

In Reply To
[http://discuss.frappe.io/user_avatar/discuss.frappe.io/aacosae/45/1282_1.png] aacosaehttp://mandrillapp.com/track/click/30309906/discuss.frappe.io?p=eyJzIjoiaUZsc0MtTHBaXzlEeEV1R0hWZUJfUG1jc0ZrIiwidiI6MSwicCI6IntcInVcIjozMDMwOTkwNixcInZcIjoxLFwidXJsXCI6XCJodHRwOlxcXC9cXFwvZGlzY3Vzcy5lcnBuZXh0LmNvbVxcXC91c2Vyc1xcXC9hYWNvc2FlXCIsXCJpZFwiOlwiYWU2MTQ2OWFmZTJkNDNiYzg3NWQxZjM2YTQzMDhjNGRcIixcInVybF9pZHNcIjpbXCJhYWQ2NmI0Y2I5NWU0ZjdhM2E2MjJhOTcxYjI2ZjExZDZlZjgwNTg2XCJdfSJ9
April 7

We got this error Usage: bench frappe [OPTIONS] COMMAND [ARGS]… Error: No such command “config”.

Visit Topichttp://mandrillapp.com/track/click/30309906/discuss.frappe.io?p=eyJzIjoiZXpvSjNDTV9Wc1hXRms1TktQOC1jVlowNnBNIiwidiI6MSwicCI6IntcInVcIjozMDMwOTkwNixcInZcIjoxLFwidXJsXCI6XCJodHRwOlxcXC9cXFwvZGlzY3Vzcy5lcnBuZXh0LmNvbVxcXC90XFxcL2xvY2FsaG9zdC1hdXRvLXVwZGF0ZVxcXC8xMDk0OVxcXC84XCIsXCJpZFwiOlwiYWU2MTQ2OWFmZTJkNDNiYzg3NWQxZjM2YTQzMDhjNGRcIixcInVybF9pZHNcIjpbXCJkZDJmNThkNDQ1NDgwNzk3OWJiMzQzNDk5MmZlMjI5MzhlNWIzYTQ2XCJdfSJ9 or reply to this email to respond

To stop receiving notifications for this particular topic, click herehttp://mandrillapp.com/track/click/30309906/discuss.frappe.io?p=eyJzIjoiQWVybFhDdk44Z3hhYXdvNFFVQjQ4QUFaZGRjIiwidiI6MSwicCI6IntcInVcIjozMDMwOTkwNixcInZcIjoxLFwidXJsXCI6XCJodHRwOlxcXC9cXFwvZGlzY3Vzcy5lcnBuZXh0LmNvbVxcXC90XFxcL2xvY2FsaG9zdC1hdXRvLXVwZGF0ZVxcXC8xMDk0OVxcXC91bnN1YnNjcmliZVwiLFwiaWRcIjpcImFlNjE0NjlhZmUyZDQzYmM4NzVkMWYzNmE0MzA4YzRkXCIsXCJ1cmxfaWRzXCI6W1wiZGQyZjU4ZDQ0NTQ4MDc5NzliYjM0MzQ5OTJmZTIyOTM4ZTViM2E0NlwiXX0ifQ. To unsubscribe from these emails, change your user preferenceshttp://mandrillapp.com/track/click/30309906/discuss.frappe.io?p=eyJzIjoiMGNXUWtPaUNNcmVNNTQwSjZNNUNHeDJWaUlBIiwidiI6MSwicCI6IntcInVcIjozMDMwOTkwNixcInZcIjoxLFwidXJsXCI6XCJodHRwOlxcXC9cXFwvZGlzY3Vzcy5lcnBuZXh0LmNvbVxcXC9teVxcXC9wcmVmZXJlbmNlc1wiLFwiaWRcIjpcImFlNjE0NjlhZmUyZDQzYmM4NzVkMWYzNmE0MzA4YzRkXCIsXCJ1cmxfaWRzXCI6W1wiNjM0ODY0NWIyOWE5YTA1OWQ1MzE1ZmNkNTFlNzQwMDk3NzY0M2JjNlwiXX0ifQ