Skip to content

Instantly share code, notes, and snippets.

Avatar

Trần Ngọc Anh keitetran

View GitHub Profile
@keitetran
keitetran / Deploy nodejs app with gitlab.com and pm2.md
Created Sep 10, 2019 — forked from btamayo/MANUAL.md
Deploy nodejs app with gitlab.com and pm2
View Deploy nodejs app with gitlab.com and pm2.md

Deploy nodejs app with gitlab.com 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>
<style>
:host {
line-height: 1.5;
}
.speed {
min-width: 35px;
@keitetran
keitetran / setup-python-3.7.2.sh
Last active Mar 17, 2019
Install python 3.7.2 for rasbian - chmod a+x setup-python-3.7.2.sh
View setup-python-3.7.2.sh
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