Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1.  
  2.  
  3.  
  4. ##nodejs
  5. sudo apt-get install curl
  6. curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
  7. sudo apt-get install -y nodejs
  8.  
  9.  
  10.  
  11.  
  12. ##nginx
  13. sudo subl /etc/apt/sources.list.d/nginx.list
  14. #and add this
  15. deb http://nginx.org/packages/ubuntu/ xenial nginx
  16. deb-src http://nginx.org/packages/ubuntu/ xenial nginx
  17.  
  18. sudo apt-get update
  19. sudo apt-get install nginx ##say yes to istall without verification
  20.  
  21. ## Replace $key with the corresponding $key from your GPG error.
  22. sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $key
  23. sudo apt-get update
  24. sudo apt-get install nginx
  25.  
  26.  
  27.  
  28.  
  29. #cron
  30. sudo apt-get install cron
  31.  
  32. #wkhtmltopdf
  33. sudo apt-get install wkhtmltopdf
  34.  
  35. #mariadb
  36. sudo apt-get install software-properties-common
  37. sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
  38. sudo add-apt-repository 'deb [arch=amd64,i386,ppc64el] http://mirror.fibergrid.in/mariadb/repo/10.2/ubuntu xenial main'
  39. sudo apt-get update
  40. sudo apt-get install mariadb-server
  41. ## mariapass is the password for the root user
  42.  
  43.  
  44. #redis
  45. sudo apt-get install redis-server
  46.  
  47.  
  48. #frappe bench
  49. virtualenv -p /usr/bin/python2.7 /media/coding_coffee/sd5/Frappe/frappe
  50. . /media/coding_coffee/sd5/Frappe/frappe/bin/activate
  51. git clone https://github.com/frappe/bench bench-repo
  52. pip install -e bench-repo
  53. bench init frappe-bench && cd frappe-bench
  54.  
  55. #Add the following line to mariadb.cnf
  56. sudo subl /etc/mysql/conf.d/mariadb.cnf
  57. ==========================================
  58.  
  59. [mysqld]
  60. innodb-file-format=barracuda
  61. innodb-file-per-table=1
  62. innodb-large-prefix=1
  63. character-set-client-handshake = FALSE
  64. character-set-server = utf8mb4
  65. collation-server = utf8mb4_unicode_ci
  66.  
  67. [mysql]
  68. default-character-set = utf8mb4
  69.  
  70. ==========================================
  71.  
  72. #Restart mysql server
  73. service mysql start
  74. service mysql stop
  75.  
  76. bench new-site site1.local
  77. #use mariadb password
  78.  
  79. bench get-app erpnext https://github.com/frappe/erpnext
  80. bench --site site1.local install-app erpnext
  81. bench start
  82.  
  83.  
  84. #Incase you want to reinstall
  85. bench --site site1.local reinstall
  86. #User: Administrator
  87. #Pass: frappepass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement