GithubHelp home page GithubHelp logo

rattfieldnz / silverstripe-vagrant-dev-machine Goto Github PK

View Code? Open in Web Editor NEW
5.0 4.0 0.0 46 KB

A Vagrant/VirtualBox dev machine set-up for Silverstripe development.

License: MIT License

Shell 100.00%
vagrant-boxes vagrant-machine vagrant-virtual-machine silverstripe lamp-server bash-script virtualbox-vm virtualbox phpmyadmin sftp-access

silverstripe-vagrant-dev-machine's Introduction

Silverstripe Vagrant Development Machine

IMPORTANT: THIS SET-UP WAS CREATED ONLY FOR DEVELOPMENT, AND IS NOT SUITABLE FOR A PRODUCTION ENVIRONMENT!

A Vagrant/VirtualBox dev machine set-up for Silverstripe development, using the popular ubuntu/xenial Vagrant box.

This set-up was created on a Windows 10 host machine, with VirtualBox v5.1.22, Vagrant v1.9.5, and Git Bash. If you have a different host O.S (e.g. a Linux distro), feel free to contribute :).

Credit goes to Nicolaas Thiemen Francken from Sunny Side Up Web Development for an excellent well-documented set-up, and also to the following GitHub gists:

Step 1

Clone this repository to your desired location (e.g. C:\Users\YOURUSERNAME\Desktop).

Step 2

Go into the new cloned folder, then right click "Git Bash Here".

Step 3

You should now be in a folder as below:

C:\Users\YOURUSERNAME\Desktop\silverstripe-vagrant-dev-machine

Enter vagrant up --provision to begin creating and provisioning your machine. This can take around 10 to 15 minutes, depending on your host machine's resources.

Step 4

Once your machine has been created and provisioned, put the following entries into your Windows hosts file (C:\Windows\System32\drivers\etc\hosts):

127.0.0.1:8080 localhost

127.0.0.1:8080/phpmyadmin/ phpmyadmin.localhost

127.0.0.1:8080 server-default.localhost

You can access the above sites in your browser like so:

You can also access the Silverstripe test project by visiting http://test.localhost:8080.

Step 5

To transfer files from your host machine to the newly-created guest machine via SFTP (e.g. with FileZilla), use the following details:

Host: 127.0.0.1

Username: silverstripedev

Password: silverstripe

Port: 2222

Default directory upon SFTP login is /var/www

Step 6

To access phpMyAdmin, navigate to http://phpmyadmin.localhost:8080 in your browser, and use the following credentials:

  • Username: ubuntu
  • Password: ubuntu

Step 7

To see server information (as displayed via PHP's 'phpinfo()' function), navigate to http://server-default.localhost:8080.


If you were experimenting with the set-up and broke the Vagrant machine, never fear! All you need to do is enter the following command to recreate said machine:

vagrant halt && vagrant destroy && vagrant up --provision


Want to help contribute and improve this set-up? Feel free to fork this repository and submit a push request. If you would like to adapt this for a Linux host machine, let me know and I'll create branches specific to the Linux distro and version.

Credit goes to Nicolaas Thiemen Francken from Sunny Side Up Web Development for an excellent well-documented set-up, and also to the following GitHub gists:

silverstripe-vagrant-dev-machine's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  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.