sudo apt install git-all
ssh-keygen -t rsa -b 4096 -C "deploy"
cat ~/.ssh/id_rsa.pub
import puppeteer from 'puppeteer-extra'; | |
import pluginStealth from 'puppeteer-extra-plugin-stealth'; // Use v2.4.5 instead of latest | |
import * as readline from 'readline'; | |
puppeteer.use(pluginStealth()); | |
// Use '-h' arg for headful login. | |
const headless = !process.argv.includes('-h'); | |
// Prompt user for email and password. |
<?php declare(strict_types=1); | |
namespace App\Models\Relations; | |
use Illuminate\Database\Eloquent\Builder; | |
use Illuminate\Database\Eloquent\Collection; | |
use Illuminate\Database\Eloquent\Model; | |
use Jenssegers\Mongodb\Relations\BelongsToMany; | |
/** |
17584) Chongqing Mobile Company (Chongqing, CN) | |
5726) China Unicom Chong Qing Branch (Chongqing, China) | |
5530) CCN (Chongqing, China) | |
19076) China Telecom (ChongQing, China) | |
20054) YunJinTianFu (Chengdu, China) | |
11444) University of Electronic Science and Technology of China (Chengdu, China) | |
2461) China Unicom (Chengdu, China) | |
4575) China Mobile Group Sichuan (Chengdu, China) | |
16398) China Mobile,GuiZhou (Guiyang, China) | |
5292) China Mobile Group Shaanxi Company Limited (Xi'an, China) |
Example of deployment process which I use in my Nuxt.js projects. I usually have 3 components running per project: admin-panel SPA, nuxt.js renderer and JSON API.
This manual is relevant for VPS such as DigitalOcean.com or Vultr.com. It's easier to use things like Now for deployment but for most cases VPS gives more flexebillity needed for projects bigger than a landing page.
UPD: This manual now compatible with [email protected]. For older versions deployment, see revision history.
Let's assume that you have entered fresh installation of Ubuntu instance via SSH. Let's rock:
server { | |
listen 80; | |
root /usr/share/nginx/html; | |
gzip on; | |
gzip_types text/css application/javascript application/json image/svg+xml; | |
gzip_comp_level 9; | |
etag on; | |
location / { | |
try_files $uri $uri/ /index.html; | |
} |
Vue.js is an amazing framework, which can be as powerful as Angular or React, the two big heavy hitters in the world of front-end frameworks.
However, most of Vue's ease-of-use is due to the use of Observables - a pattern that triggers re-renders and other function calls with the reassignment of a variable.
If you want:
About 90% of this comes from: https://gist.github.com/pjdietz/5768124 just with a few fixes for the host only network
1 Create a host only network in the Virtualbox GUI
Go to File -> Settings -> Tools -> Terminal and change Shell path based on the the installed git version.
for 64bit:
"C:\Program Files\Git\bin\sh.exe" --login -i
for 32bit:
"C:\Program Files (x86)\Git\bin\sh.exe" --login -i
Map | |
.find({ | |
artistId: Utils.convertToObjectId(user._id) | |
}) | |
.select("nameUrl status mapType created sliders") | |
.populate({ | |
path: 'sliders', | |
select: 'name No createdAt works', | |
populate: [{ | |
path: 'works', |