项目作者: jimpriest

项目描述 :
Simple Vagrant CFML Development Environment
高级语言: HTML
项目地址: git://github.com/jimpriest/vagrant-cfml.git
创建时间: 2017-02-27T01:05:37Z
项目社区:https://github.com/jimpriest/vagrant-cfml

开源协议:Other

下载


Vagrant CFML

This project will stand up a complete (albiet simple) CFML development environment using Vagrant.

CFML Development Environment

  • Ubuntu Server v14.04 LTS (Trusty Tahr) 64bit
  • Apache 2
  • Lucee v5
  • MariaDB
  • Mailcatcher

My Configuration

This was configured to run in my environment. YMMV.

I’m running:

  • Linux Mint 18 (Ubuntu 16.04 LTS)
  • VirtualBox 5.1 (installed via apt)
  • Vagrant 1.9.1

Prerequisites

Required

It is assumed you have VirtualBox and Vagrant installed:

Note: If you install via apt - verify the correct versions were installed!

Once Vagrant is installed I’d suggest installing the following Vagrant plugins:


Installation

Clone the repo and run ‘vagrant up’:

  1. git clone https://github.com/jimpriest/vagrant-cfml.git
  2. cd vagrant-cfml/vagrantroot && vagrant up

Note: The first time you clone the repo and bring the box up, it may take several minutes.
If it doesn’t explicitly fail/quit, then it is still working. Be patient.

Once the Vagrant box finishes and is ready for use, you should see something like this in your terminal:

  1. ==> default: ========================================================================
  2. ==> default: http://www.vagrant-cfml.local (192.168.123.45)
  3. ==> default:
  4. ==> default: Lucee Server/Web Context Administrators
  5. ==> default:
  6. ==> default: http://www.vagrant-cfml.local/lucee/admin/server.cfm
  7. ==> default: http://www.vagrant-cfml.local/lucee/admin/web.cfm
  8. ==> default:
  9. ==> default: Common Lucee admin password: password
  10. ==> default: -----------------------------------------------------------------------
  11. ==> default: Apache web root is default: /var/www/html
  12. ==> default:
  13. ==> default: This directory is mapped to /webroot directory in this project (see Vagrantfile)
  14. ==> default: You can place your project code in this directory.
  15. ==> default: -----------------------------------------------------------------------
  16. ==> default: Database Server Info
  17. ==> default:
  18. ==> default: Server: db.vagrant-cfml.local
  19. ==> default: Port: 3306
  20. ==> default: User: root
  21. ==> default: Password: password
  22. ==> default: ========================================================================

Post Install

Once you see that, you should be able to browse to http://www.vagrant-cfml.local/
or http://192.168.123.45/

Iit may take a few minutes the first time a page loads after bringing your box up, subsequent requests should be much faster.

There is a simple index.cfm by default in the wwwroot folder which will ensure CFML and MariaDB are working correctly.

You may either place your .cfm files in this wwwroot directory or adjust the Vagrantfile ‘synced_webroot_local’ path to point to a different location.

If you change the vagrantfile you will need to reload Vagrant:

  1. vagrant reload

This project was heavily influenced by (ie: I copied a lot of stuff from):

Disclaimer

  • It works on my system :)
  • There is no security baked in! This is intended for development use only.
  • It is pitch black. You are likely to be eaten by a grue.