This manual is about setting up an automatic deploy workflow using nodejs, PM2, nginx and GitLab CI. It is tested on:
- Target server: Ubuntu 16.04 x64. This is suitable for Ubuntu 14.x.
- Windows 10 on my PC to work.
| class CustomFanCard extends Polymer.Element { | |
| static get template() { | |
| return Polymer.html ` | |
| <style is="custom-style" include="iron-flex iron-flex-alignment"></style> | |
| <style> | |
| :host { | |
| line-height: 1.5; | |
| } | |
| .speed { | |
| min-width: 35px; |
| sudo apt-get update -y | |
| sudo apt-get install build-essential tk-dev libncurses5-dev libncursesw5-dev libreadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev libffi-dev -y | |
| sudo wget https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tar.xz | |
| sudo tar xf Python-3.7.2.tar.xz | |
| cd Python-3.7.2 | |
| ./configure --prefix=/usr/local/opt/python-3.7.2 | |
| make -j 4 | |
| sudo make altinstall | |
| cd .. | |
| sudo rm -r Python-3.7.2 |