These instructions are for a concrete5 v5.7 project
- Your server name ends in
.dev
(e.g., spydertrap.dev) - You have the following installed:
- You have a global gitignore which contains rules for your OS and IDE. This keeps our project-level gitignores from getting bloated. You can use gitignore.io to generate one
https://www.concrete5.org/documentation/developers/5.7/installation/installation/
-
Create an empty database
-
Copy the
.env.example
to a new.env
file and update the variables according to your environment. -
Use Composer to install the third party dependencies
If composer is installed globally:
$ cd www/application $ composer install $ cd ../concrete $ composer install $ cd ../packages/st_redirects $ git submodule update --init --recursive $ composer install
If composer is downloaded as a .phar:
$ cd www/application $ php /path/to/composer.phar install $ cd ../concrete $ php /path/to/composer.phar install
This should install everything necessary into the vendor/ directory in the concrete directory.
-
Use npm to install the theme's packages
cd www/application/themes/theme_name npm install
-
Use bower to install the theme's dev dependencies
cd www/application/themes/theme_name bower install
-
Build the theme assets with Grunt
cd www/application/themes/theme_name grunt
-
Locate Vagrant Box
$ cd ~/Resources/Vagary
-
Start Vagrant Box
$ vagrant up
-
Edit your hosts file
$sudo subl /etc/hosts
-
Enable ssh
$ vagrant ssh
-
Start base services
$ cd /var/shared/ $ sh start-base-services.sh
-
Compose docker file
$ cd /var/www/SITENAME/ $ docker-compose up -d
-
Stop the Vagrant Box
$ vagrant exit $ vagrant halt