Skip to content
This repository has been archived by the owner on Oct 17, 2018. It is now read-only.

Commit

Permalink
Merge branch 'release/1.7.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
rogeriopradoj committed Jan 6, 2018
2 parents 415529d + 03a72d7 commit 2ac20f7
Show file tree
Hide file tree
Showing 2,035 changed files with 90 additions and 122,651 deletions.
2 changes: 2 additions & 0 deletions .env
@@ -0,0 +1,2 @@
DOCKER_DEV_DOMAIN=blog.phpsp.dev
DOCKER_LOCAL_IP=
44 changes: 25 additions & 19 deletions README.md
Expand Up @@ -14,43 +14,49 @@

### Instalação

#### Produção
#### Em Produção

Com o WordPress instalado baixe o [tema na versão mais recente](https://github.com/PHPSP/phpsp-blog-theme/releases) e instale pelo gerenciador de temas do WordPress.

É necessário instalar os [plugins](#plugins-e-depend%C3%AAncias) e ativá-los;

#### Localmente
#### Em Desenvolvimento

Baixe a versão mais recente do WordPress e instale-a em seu ambiente de desenvolvimento. Após isto, clone este repositório na pasta `themes`:
##### Via Docker Compose (recomendado)

Garanta que tenha a última versão do [Docker](https://www.docker.com/) e do [Docker Compose](https://docs.docker.com/compose/).

Em seguida navegue pelo terminal até este diretório clonado na sua máquina, e execute o seguinte comando:

```shell
cd seu-ambiente-de-desenvolvimento/wp-content/themes/
git clone git@github.com:PHPSP/phpsp-blog-theme.git
docker-compose up
```

Após instalar o tema, instale os plugins e dependências executando o arquivo de
build com o `phing`.
Crie uma referência no seu arquivo de hosts de `blog.phpsp.dev` para `127.0.0.1`, algo como:

Finalize a instalação seguindo as [instruções no final](#finalizando-a-instala%C3%A7%C3%A3o).
```
127.0.0.1 localhost blog.phpsp.dev
```

#### Com Vagrant
O tema já estará ativado quando você acessar <http://blog.phpsp.dev/>.

Se você ainda não tiver, realize a instalação das ultimas versões do VirtualBox
e do Vagrant no seu ambiente de desenvolvimento. Em seguida navegue pelo
terminal até o diretório desse repositório e execute o seguinte comando:
Caso seja necessário acessar o painel administrativo, <http://blog.phpsp.dev/login>, o usuário é `wordpress` e a senha `wordpress`.

```shell
vagrant up
```
##### Manualmente

Finalize a instalação seguindo as [instruções na seção abaixo](#finalizando-a-instala%C3%A7%C3%A3o).
Baixe a versão mais recente do WordPress e instale-a em seu ambiente de desenvolvimento.

Crie uma referência no seu arquivo de hosts de `blog.phpsp.dev` para `192.168.56.131`.
Após isto, clone este repositório na pasta `themes`:

O Painel Administrativo poderá ser acessado em http://blog.phpsp.dev.
```shell
cd seu-ambiente-de-desenvolvimento/wp-content/themes/
git clone https://github.com/phpsp-blog-theme.git
```

Após instalar o tema, instale os plugins e dependências executando o arquivo de
build com o `phing`.

#### Finalizando a Instalação
Por fim:

1. Acesse o painel administrativo do Wordpress
2. Ative todos os plugins na aba **Plugins**
Expand Down
235 changes: 0 additions & 235 deletions Vagrantfile

This file was deleted.

2 changes: 1 addition & 1 deletion build.xml
Expand Up @@ -55,7 +55,7 @@
escape="false"
passthru="true"
checkreturn="true"
command="https://downloads.wordpress.org/plugin/google-analytics-for-wordpress.5.4.4.zip -o '${plugindir}google-analytics-for-wordpress.5.4.4.zipp'" />
command="https://downloads.wordpress.org/plugin/google-analytics-for-wordpress.5.4.4.zip -o '${plugindir}google-analytics-for-wordpress.5.4.4.zip'" />
<unzip file="${plugindir}meetup-widgets.2.3.1.zip" todir="${plugindir}" />

<fileset dir="${plugindir}" id="deleteFiles">
Expand Down
41 changes: 41 additions & 0 deletions docker-compose.yml
@@ -0,0 +1,41 @@
version: "2"

services:
wordpress:
image: "chriszarate/wordpress:4.9.1"
environment:
VIRTUAL_HOST: "${DOCKER_DEV_DOMAIN}"
WORDPRESS_ACTIVATE_PLUGINS: "" # plugin folder relative to /wp-content/plugins/
WORDPRESS_ACTIVATE_THEME: "phpsp" # theme folder relative to /wp-content/themes/
WORDPRESS_SITE_TITLE: "Blog PHPSP Local"
WORDPRESS_SITE_URL: "http://${DOCKER_DEV_DOMAIN}"
XDEBUG_CONFIG: "remote_host=${DOCKER_LOCAL_IP} idekey=xdebug"
depends_on:
- "mysql"
networks:
- "front"
- "back"
volumes:
- ".:/var/www/html/wp-content/themes/phpsp"
mysql:
image: "mariadb:10.2"
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_DATABASE: "wordpress"
MYSQL_ROOT_PASSWORD: ""
networks:
- "back"
proxy:
image: "jwilder/nginx-proxy:alpine"
ports:
- "80:80"
networks:
front:
aliases:
- "${DOCKER_DEV_DOMAIN}"
volumes:
- "/var/run/docker.sock:/tmp/docker.sock:ro"

networks:
front: {}
back: {}
2 changes: 1 addition & 1 deletion header.php
Expand Up @@ -26,7 +26,7 @@
<link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/favicon.ico" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'template_url' ); ?>/bootstrap/css/bootstrap.css" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'template_url' ); ?>/bootstrap/css/bootstrap.min.css" />
<link href='http://fonts.googleapis.com/css?family=Merriweather+Sans' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Merriweather+Sans' rel='stylesheet' type='text/css'>

<script type="text/javascript" src="<?php bloginfo( 'template_url' ); ?>/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="<?php bloginfo( 'template_url' ); ?>/bootstrap/js/bootstrap.min.js"></script>
Expand Down
Binary file added img/devnaestrada.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/locaweb.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 0 additions & 10 deletions puphpet/.gitattributes

This file was deleted.

0 comments on commit 2ac20f7

Please sign in to comment.