Skip to content

Instantly share code, notes, and snippets.

@agritheory
Created November 11, 2018 13:32
Show Gist options
  • Save agritheory/d5f6a4c3e0436e3a52f6f54551d1479c to your computer and use it in GitHub Desktop.
Save agritheory/d5f6a4c3e0436e3a52f6f54551d1479c to your computer and use it in GitHub Desktop.
sudo apt-get install git
sudo apt-get install python-minimal
sudo apt-get install software-properties-common
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
sudo add-apt-repository 'deb [arch=amd64,i386,ppc64el] http://ftp.ubuntu-tw.org/mirror/mariadb/repo/10.3/ubuntu xenial main'
sudo apt-get update
sudo apt-get install mariadb-server-10.3
sudo apt-get install libmysqlclient-dev
sudo apt install python-pip
# do not upgrade pip; breaks in pip bench install
sudo nano /etc/mysql/my.cnf
# make these changes to my.cnf file in the appropriate [sections]
[mysqld]
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
[mysql]
default-character-set = utf8mb4
sudo service mysql restart
sudo apt-get install redis-server
sudo apt-get install nginx
sudo apt-get install curl
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo git clone https://github.com/frappe/bench
sudo pip install -e ./bench
bench init parsimony --python python2.7 --verbose --frappe-branch staging
cd parsimony
sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config
npm install -g yarn
npm install -g rollup
bench get-app erpnext --branch staging
bench new-site my_site.local --db-name mysite # change my_site
bench install-app erpnext
bench update
bench update --reset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment