Use the following commands to create a new project:
composer create-project sumocoders/application-skeleton my_project
git init
git add .
git commit -n -m "Initial commit"
Start your project by running:
symfony serve
symfony console sass:build --watch
Open deploy.php and check the configuration, replace the example values
(prefixed with $) with correct values.
Try to deploy to staging by running:
symfony php vendor/bin/dep deploy stage=staging
Log in through ssh on the dev-server and alter the .env.local-file to use the
correct credentials.
Each time something is merged into the staging/master branch it will be deployed automatically.
- Open
.gitlab-ci.yaml - Scroll to
Deploy - to staging. - Alter the url under
environment → url. - Scroll to
Deploy - to production. - Alter the url under
environment → url.
There is a test-script scripts/test.sh which you can use:
COMPOSER_MEMORY_LIMIT=-1 ./scripts/test.sh BRANCH-TO_TEST TARGETDIR
This will create a new project that uses the commited code in the selected branch. The new project will be located in the TARGETDIR
Kudos to beporter.