Skip to content

Instantly share code, notes, and snippets.


Trần Ngọc Anh keitetran

View GitHub Profile
keitetran / Deploy nodejs app with and
Created Sep 10, 2019 — forked from btamayo/
Deploy nodejs app with and pm2
View Deploy nodejs app with and

Deploy nodejs app with and pm2

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.
View xxx.js
class CustomFanCard extends Polymer.Element {
static get template() {
return Polymer.html `
<style is="custom-style" include="iron-flex iron-flex-alignment"></style>
:host {
line-height: 1.5;
.speed {
min-width: 35px;
keitetran /
Last active Mar 17, 2019
Install python 3.7.2 for rasbian - chmod a+x
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
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