This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
zip -r zipperall.zip dir -x dir/subdir/**\* dir/anothersubdir/**\* |
https://w3path.com/point-domain-to-aws-ec2-instance/ |
sudo apt-get update | |
sudo apt-get -y upgrade | |
sudo apt-get -y install vim git python3-pip | |
#postgresql | |
sudo sh -c 'echo "deb [arch=amd64] http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' | |
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - | |
sudo apt-get update | |
sudo apt-get -y install postgresql | |
sudo apt-get install libpq-dev |
https://tecadmin.net/install-lets-encrypt-create-ssl-ubuntu/ | |
$ apt-get update | |
$ sudo apt-get install certbot | |
$ apt-get install python3-certbot-nginx | |
$ sudo certbot --nginx -d example.com -d www.example.com | |
server { | |
listen 80 default_server; |
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:
{ | |
"editor.formatOnSave": true, | |
"editor.autoIndent": "advanced", | |
"editor.detectIndentation": true, | |
"files.insertFinalNewline": true, | |
"files.trimTrailingWhitespace": true, | |
"editor.formatOnPaste": true, | |
"editor.multiCursorModifier": "ctrlCmd", | |
"editor.snippetSuggestions": "top", | |
"editor.rulers": [ |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure("2") do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |