This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command
$ docker-compose up -d
# To Tear Down
$ docker-compose down --volumes
<?php | |
class order_status_customisation { | |
/** | |
* Setup actions | |
*/ | |
static function setup() { | |
add_action( 'init', __CLASS__ . '::adding_additional_order_statuses', 10 ); | |
add_filter( 'wc_order_statuses', __CLASS__ . '::add_awaiting_shipment_to_order_statuses', 10, 1 ); |
/** | |
* Auto Complete all WooCommerce orders. | |
*/ | |
add_action( 'woocommerce_thankyou', 'custom_woocommerce_auto_complete_order' ); | |
function custom_woocommerce_auto_complete_order( $order_id ) { | |
if ( ! $order_id ) { | |
return; | |
} | |
$order = wc_get_order( $order_id ); |
Generate the key: ssh-keygen | |
Point to the directory with your key pair | |
cd ~/.ssh | |
locate the pub key for ssh | |
ssh-copy-id -i [key_name].pub USERNAME@SERVERT_IP | |
Then |
'use strict'; | |
const autoprefixer = require('autoprefixer'); | |
const browsers = require('@wordpress/browserslist-config'); | |
const MiniCssExtractPlugin = require('mini-css-extract-plugin'); | |
const path = require('path'); | |
const webpack = require('webpack'); | |
module.exports = function (env, options) { |
Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a
I will be using the root user, but would suggest creating a new user
This goes with the Traversy Media Scrapy tutorial on YouTube
pip install scrapy