Skip to content

phpmga/website

Repository files navigation

phpmga.net

Web Site of PHP Community Maringa

Quick start

1 - Clone the repo:

git clone https://github.com/phpmga/website.git phpmga.net

2 - Change to the directory created

cd phpmga.net/

3 - Download Composer

Run this in your terminal to get the latest Composer version:

curl -sS https://getcomposer.org/installer | php

or if you don't have curl:

php -r "readfile('https://getcomposer.org/installer');" | php

4 - Composer Install

php composer.phar install

or composer path:

composer install

5 - Create file .env

cp .env.example .env

6 - Set the application key

php artisan key:generate

7 - Start PHP Artisan Built-in web server:

php artisan serve

Install AngularJS & Semantic UI

1 - Install bower and npm dependencies:

npm install -g bower
bower install

2 - Install gulp and elixir:

npm install

3 - Run gulp to build production:

gulp --production

Publish website to phpmga.net

1 - Automate SSH connection: You need to edit/create the file ~/.ssh/config on your computer. Then add this content.

Host phpmga.net
  User freebsd
  PreferredAuthentications publickey

2 - Add phpmga.net as a remote. On your computer, navigate to your git repo and run this command.

git remote add phpmga-publish phpmga.net:/usr/local/www/phpmga.net/

3 - Execute the command below to publish website

  • First publish
git push phpmga-publish master
  • Other publish
git push phpmga-publish

##Copyright and license

Code and documentation copyright (c) 2015, PHP Community Maringa.