GithubHelp home page GithubHelp logo

pythonbrasil / pybr2017-site Goto Github PK

View Code? Open in Web Editor NEW
9.0 13.0 11.0 11.25 MB

13ª Conferência Python Brasil

Home Page: http://2017.pythonbrasil.org.br

CSS 20.69% HTML 39.74% Python 19.44% Makefile 2.39% Shell 1.35% JavaScript 16.40%

pybr2017-site's Introduction

PythonBrasil[13] . Site Oficial

Build Status

Esse é o portal oficial da Python Brasil 13, criado de maneira colaborativa.

Contribuições

Se você tem interesse de contribuir com o site faça o clone do repositório da seguinte forma:

$ git clone [email protected]:pythonbrasil/pythonbrasil13-site.git

Executando com docker-compose, the fast-way

Se você possuir Docker Compose instalado em seu ambiente, este é o caminho mais rápido para o site rodar em sua máquina.

Dentro da pasta do projeto, execute o seguinte comando:

$ docker-compose up

Em seguida acesse pelo navegador a URL http://localhost:8000.

Instalação manual, the safe- and detailed-way

Caso prefira a instalação e execução manual do site, os passos seguintes descrevem a instalação de dependências e execução.

Instalando todas as dependências

With Yum:
$ sudo yum install python-virtualenvwrapper libxslt-devel libxml2-devel rubygem-sass nodejs npm

With apt-get:
$ sudo apt-get install libxml2-dev libxslt1-dev python-dev nodejs npm
$ sudo pip install virtualenvwrapper

$ cd pythonbrasil12-site
$ npm install gulp gulp-uglify gulp-concat
$ export WORKON_HOME="~/venv"
$ . /usr/bin/virtualenvwrapper.sh
# OR
$ . /usr/local/bin/virtualenvwrapper.sh
$ mkvirtualenv pybr13-site
$ workon pybr13-site && pip install -r requirements.txt

Utilizando Ansible

Junto com o repositório existe um playbook para ansible que suporta as distribuições GNU/Linux RedHat-Like e Debian-Like.

Para utilizar o playbook do ansible utilize os seguintes comandos:

$ sudo yum install ansible
$ make ansible-setup

Compilando o Site

Após a criação do ambiente (manualmente ou via ansible), para compilar o site execute o seguinte comando:

$ workon pybr13-site
$ make html serve

Em seguida acesse pelo navegador a URL http://localhost:8000.

pybr2017-site's People

Contributors

anapaulagomes avatar bernardoow avatar cassiobotaro avatar eliasdorneles avatar ervilis avatar filipecifali avatar gutomaia avatar humrochagf avatar igr-santos avatar jairojair avatar jtemporal avatar juliakastrup avatar lerrua avatar luzfcb avatar magnunleno avatar phinfonet avatar ramiroluz avatar rennerocha avatar rochacbruno avatar rougeth avatar sergiomario avatar suggiro avatar turicas avatar vmesel avatar willemarcel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pybr2017-site's Issues

Erro ao usar docker-compose-up

Ao tentar executar o docker-compose para subir o ambiente para desenvolvimento, ocorre um erro ao tentar instalar o sass.

Building site
Step 1/19 : FROM python
 ---> 968120d8cbe8
Step 2/19 : RUN apt-get -q update && apt-get -q install -y libxml2-dev libxslt1-dev python-dev python-virtualenv
 ---> Using cache
 ---> db296fb32334
Step 3/19 : RUN apt-get -q update && apt-get -q install -y nodejs npm
 ---> Using cache
 ---> 4c1c6bbefe0b
Step 4/19 : RUN npm install gulp gulp-uglify gulp-concat &>> /dev/build.log
 ---> Using cache
 ---> e0467df01f1f
Step 5/19 : RUN apt-get -q update && apt-get -q install -y rubygems
 ---> Using cache
 ---> 6c9151a99435
Step 6/19 : RUN gem install -q sass
 ---> Running in f628badcc633
Building native extensions.  This could take a while...
ERROR:  Error installing sass:
	ERROR: Failed to build gem native extension.

    /usr/bin/ruby2.1 extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

extconf failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.1.0/gems/ffi-1.9.18 for inspection.
Results logged to /var/lib/gems/2.1.0/extensions/x86_64-linux/2.1.0/ffi-1.9.18/gem_make.out
ERROR: Service 'site' failed to build: The command '/bin/sh -c gem install -q sass' returned a non-zero code: 1

Problema ao compilar o sistema

Como a solução com Docker não funcionou, tentei seguir o passo-a-passo com virtualenv. Mas as instruções fornecidas também não funcionaram:

(pythonbrasil13) renne@capivara:pythonbrasil13-site$ make html serve
cd theme; make all
make[1]: Entering directory '/home/renne/projects/pythonbrasil13-site/theme'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/renne/projects/pythonbrasil13-site/theme'
pelican /home/renne/projects/pythonbrasil13-site/content -o /home/renne/projects/pythonbrasil13-site/output -s /home/renne/projects/pythonbrasil13-site/pelicanconf.py 
CRITICAL: KeyError: 'JINJA_EXTENSIONS'
Makefile:48: recipe for target 'html' failed
make: *** [html] Error 1
(pythonbrasil13) renne@capivara:pythonbrasil13-site$ 

Pagamento com cartão não brasileiro

Já enviei esse feedback pro Cássio também.

Tentei realizar minha inscrição, mas todo o processo de inscrição é "Brasil-centric". As informações ou os formatos para pagamento com cartão nem sempre se aplicam para pessoas fora do Brasil (CEP, CPF, telefone etc.).

Como faz pagamento com cartão não brasileiro?

Nos anos anteriores foi feito one-off com PayPal. Seria bom se desse para consertar isso de uma vez por todas para não ter esse problema todo ano para se cadastrar no evento.

Abraços e obrigado!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.