GithubHelp home page GithubHelp logo

outwebbed / dreambox_boltcms Goto Github PK

View Code? Open in Web Editor NEW

This project forked from goodguyry/dreambox

0.0 1.0 0.0 69.41 MB

A Vagrant environment based on DreamHost's shared hosting w/ Bolt CMS Installed

License: GNU General Public License v3.0

Shell 63.05% ApacheConf 36.95%

dreambox_boltcms's Introduction

DreamBox

Recreates the DreamHost shared hosting environment as a Vagrant box.

This project repo is for building the Dreambox base box. To use this box in a project, see the usage instructions below.

Features

  • Ubuntu - 12.04 LTS
  • PHP - 5.6.10
  • Apache - 2.2.22 (CGI/FastCGI)
  • MySQL - 5.5.40

Python and Ruby environments are not set up. Contributions are welcome and appreciated.

Usage

Initialize a new project using this box by running the following commands:

vagrant init goodguyry/dreambox
vagrant up

To use this box with an existing project, use the following in your Vagrantfile:

config.vm.box = "goodguyry/dreambox"
config.vm.box_url = "https://atlas.hashicorp.com/goodguyry/boxes/dreambox"

User Setup

DreamBox is meant to replicate both the hosting environment and the shared hosting setup (the full path to the web root). The user_setup script is provided to create the user directory and link the project root in your Vagrant sync folder to your new web root.

The user_setup script should be automated as part of your provisioning. Pass environment variables to the provisioner as follows, changing the variable values to reflect your needs.

  # Environment variables for automating user_setup
  user_vars = {
    "DREAMBOX_USER_NAME" => "db_user", # DreamHost username
    "DREAMBOX_SITE_ROOT" => "dreambox.com", # Site root directory
    "DREAMBOX_PROJECT_DIR" => "/web" # Relative to project root
  }

  # Runs user_setup
  config.vm.provision "shell",
    inline: "/bin/bash /usr/local/bin/user_setup",
    # Pass user_setup ENV variables to this script
    :env => user_vars

Alternatively, if you'd rather not commit this information to a public repo, run user_setup from within the VM and follow the prompts.

vagrant up
vagrant ssh
sudo user_setup

MySQL Setup (Optional)

To set a password for the root mysql user, run mysql_secure_installation from within the VM.

vagrant up
vagrant ssh
mysql_secure_installation

References

Changelog

v0.1.0

Initial release, based on https://github.com/goodguyry/dreambox

dreambox_boltcms's People

Contributors

goodguyry avatar nreilingh avatar outwebbed avatar

Watchers

 avatar

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.