Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.
/ vagrant-phalcon Public archive

Vagrantfile and some setting files for Phalcon2 dev enviroments.

License

Notifications You must be signed in to change notification settings

ryomo/vagrant-phalcon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Summary

Newer version available at ryomo/vagrant-phalcon3-php7

OS

Ubuntu 14.04(LTS)

Installed Apps

  • Apache
    • SSL enabled.
  • MariaDB
    • root password is pass.
  • PHP 5.6
  • phpMyAdmin
  • Phalcon 2.1.x BETA
    • If you want to use the stable version, change PHALCON_BRANCH='2.1.x' to 2.0.x in conf/provision.sh.
  • Zephir
  • Composer
  • Phalcon DevTools
  • Codeception
  • Memcached
    • If you want to use memcached, you should not use Phalcon\Cache\Backend\Memcache, but should use Phalcon\Cache\Backend\Libmemcached.
  • Jenkins
  • Xdebug
    • Xdebug is disabled by default for performance reason.
    • To enable Xdebug, run sudo php5enmod xdebug in vagrant ssh.

How to use this Vagrantfile

$ git clone git@github.com:ryomo/vagrant-phalcon.git
$ cd vagrant-phalcon/
$ vagrant up

How to use Vagrant Box based on this

No need to clone this repository

  1. $ vagrant init ryomo/phalcon
  2. Edit Vagrantfile like below
  3. $ vagrant up
# -*- mode: ruby -*-
# vi: set ft=ruby :

# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = '2'

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  config.vm.provider 'virtualbox' do |v|
    v.memory = 1536
    v.cpus = 2
  end
  config.vm.box = 'ryomo/phalcon'
  config.vm.synced_folder 'html', '/var/www/html', create: true,
    owner: 'www-data',
    group: 'www-data',
    mount_options: ['dmode=775,fmode=664']
  config.vm.network :forwarded_port, guest: 8080, host: 8081
  config.vm.network :private_network, ip: '192.168.33.12'
end

Access

$ vagrant ssh
$ cd /var/www/html/
$ sudo phalcon project myproject

URL: http://192.168.33.12/myproject/

or https://192.168.33.12/myproject/

Available commands in vagrant ssh

phalcon

$ sudo phalcon

Phalcon DevTools (2.0.7)

Available commands:~

zephir

$ zephir

 _____              __    _
/__  /  ___  ____  / /_  (_)____
  / /  / _ \/ __ \/ __ \/ / ___/
 / /__/  __/ /_/ / / / / / /
/____/\___/ .___/_/ /_/_/_/
         /_/

Zephir version 0.7.1b

Usage:~

composer

$ sudo composer
   ______
  / ____/___  ____ ___  ____  ____  ________  _____
 / /   / __ \/ __ `__ \/ __ \/ __ \/ ___/ _ \/ ___/
/ /___/ /_/ / / / / / / /_/ / /_/ (__  )  __/ /
\____/\____/_/ /_/ /_/ .___/\____/____/\___/_/
                    /_/
Composer version 1.0-dev (afd98b74f13b9def1b2447f16fd0bfd4d96dff94) 2015-08-31 09:58:50

Usage:~

codecept

$ sudo codecept

Codeception version 2.1.2

Usage:~

About

Vagrantfile and some setting files for Phalcon2 dev enviroments.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages