Só funciona em um dominio, mesmo que seja http://localhost
.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ProxyPreserveHost On | |
ProxyRequests Off | |
ServerName <<<SITE NAME>>>.com | |
ProxyPass / http://0.0.0.0:8080/ # Server IP + the exposed port of docker container | |
ProxyPassReverse / http://0.0.0.0:8080/ # Server IP + the exposed port of docker container | |
</VirtualHost> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE wp_options SET option_value = replace(option_value, 'http://www.oldurl', 'http://www.newurl') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
UPDATE wp_posts SET guid = replace(guid, 'http://www.oldurl','http://www.newurl'); | |
UPDATE wp_posts SET post_content = replace(post_content, 'http://www.oldurl', 'http://www.newurl'); | |
UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://www.oldurl','http://www.newurl'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import subprocess | |
server_user = "user" | |
server_host = "localhost.domain" | |
server_path = "/var/www/html/website/" | |
# Build RSync Command line | |
args = ["rsync", "-avzH", "--exclude", ".git/ sources/", "-e", "ssh", "."] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# needs: zip, unzip, rsync, openssh-client | |
# | |
# it can be used to run under bitbucket-pipelines playbook | |
# if so, remove variables and switch them for environment variables with $ prefix | |
PROJECT_PATH = "/sites/my-website.com" | |
REMOTE_HOST = "root@ssh-touch.dev" | |
REMOTE_PATH = "/var/www/html/my-website.com" |
Em julho de 1969, Neil Armstrong deu os primeiros passos na lua. Nós então celebramos o 50º aniversário desta conquista incrível, nós temos a chance de refletir na dificuldade e na audácia que foi cada parte das missões lunares. Neste projeto, nóes iremos simular o pouso na lua criando um jogo da Cápsula Lunar em Python.
- Abra o projeto inicial em Python usando link https://trinket.io/python/ac3342d0a8. Aqui você irá ter três abas
main.py
,terrain.py
elanderClass.py
. Nós iremos escrever nosso código no arquivomain.py
; as outras duas abas serão configuradas por você. Se você clicar no botão {: .run}, será gerado aleatoriamente uma superfice lunar e sua plataforma de pouso. Nós tentaremos pousar nessa plataforma. - Em sua aba
main.py
, você verá que algum código já foi adicionado lá. Este comandoimport
irá buscar alguns códigos que iremos precisar no futuro. Nós iremos adic
OlderNewer