Requirement //6.9.1 or higher
##Installing the Angular CLI
```npm install –g @angular/cli
##Verifying the Angular CLI Version
```ng -v
#!/bin/bash | |
# MySQL database defaults | |
dbname="wordpress" | |
dbuser="wordpress" | |
# Gather user info | |
read -r -p "Enter your domain, e.g. mywebsite.co (no http://, no www.): " wpURL | |
read -r -p "Enter a secure MySQL root password to use (save this somewhere): " rootpass | |
read -r -p "Enter a secure MySQL WordPress password to use: " userpass |
sudo chown -R www-data:www-data /var/www |
// https://docs.microsoft.com/en-us/azure/app-service-web/scripts/app-service-cli-deploy-local-git | |
=> az login | |
=> az appservice web deployment user set --user-name [YOUR USERNAME] --password [YOUR PASSWORD] | |
{ | |
"id": null, | |
"kind": null, | |
"location": null, | |
"name": "web", | |
"publishingPassword": null, | |
"publishingPasswordHash": null, |
#!/bin/bash | |
gitdirectory=<Replace with path to local Git repo> | |
username=<Replace with desired deployment username> | |
password=<Replace with desired deployment password> | |
webappname=mywebapp$RANDOM | |
# Create a resource group. | |
az group create --location westeurope --name myResourceGroup |
OPTION ALIAS DESCRIPTION | |
--flat Should a folder be created? | |
--inline-template -it Will the template be in the .ts file? | |
--inline-style -is Will the style be in the .ts file? | |
--spec Generate a spec? | |
--view-encapsulation -ve View encapsulation strategy | |
--change-detection -cd Change detection strategy | |
--dry-run -d Report the files, don’t write them |
<?php | |
if(isset($_GET['name'])) { | |
$name = $_GET{'name']; | |
} | |
else { | |
$name = '(unknown)'; | |
} | |
//Other option to get name | |
$name = $_GET['name'] ?: '(unknown)'; |
** Install Salis MVC Framework ** | |
npm install sails -g | |
** Creata a new directory for the project ** | |
** Create sails api project into new folder ** with this command ```sails new -no-frontend | |
** Run Sails app ** with command ```sails lift | |
** Create a user api ** with ```sails generate api user |
Requirement //6.9.1 or higher
##Installing the Angular CLI
```npm install –g @angular/cli
##Verifying the Angular CLI Version
```ng -v
SET @oldsite='http://oldsite.com'; | |
SET @newsite='http://newsite.com'; | |
UPDATE wp_options SET option_value = replace(option_value, @oldsite, @newsite) WHERE option_name = 'home' OR option_name = 'siteurl'; | |
UPDATE wp_posts SET post_content = replace(post_content, @oldsite, @newsite); | |
UPDATE wp_links SET link_url = replace(link_url, @oldsite, @newsite); | |
UPDATE wp_postmeta SET meta_value = replace(meta_value, @oldsite, @newsite); | |
/* only uncomment next line if you want all your current posts to post to RSS again as new */ | |
#UPDATE wp_posts SET guid = replace(guid, @oldsite, @newsite); |
Crear ó entrar a la carpeta del proyecto $ git remote add origin [HTTPS ó SSH del proyecto forked] $ git remote add upstream [HTTPS ó SSH del proyecto principal] $ git fetch upstream $ git merge origin/upstream $ git fetch origin $ git merge origin/master Hacer cambios en local $ git fetch upstream $ git merge origin/upstream