This tutorial assumes that you have installed and configured:
$ git clone https://github.com/mraym/php-drie-starter-app.git # or clone your own fork
Depending on your operating system, you need to make and test your changes on your local *AMP server.
$ cd php-drie-starter-app $ composer update # This command reads in the dependencies defined in composer.json and updates command.lock, which drie needs to build your app properly $ git commit -am composer* # Need to commit both composer files $ git push # Push the changes to your repo
$ drie app add UNIQUE_APP_NAME # adds the app to drie with a unique name $ drie app deploy # deploys the app on drie $ drie app scale 1 # starts the app scaled to 1 instance
At the moment, you will have to periodically run 'drie app show' on the deploy and scale commands and wait for the status to change from 'deploying' to 'deployed'.
drie app show App php-drie-starter-app ======================== status: deployed id: f363ce17-5792-4a7b-a88b-ee1d08c3e302 deployed commit: 26c1aea9e69721bea3ecab84f969d89eb09cdd73 build repo: email@example.com:mraym/php-drie-starter-app.git web address ====== web_UNIQUE_APP_NAME.app.drie.co processes ====== 1 web config ====== REPO_URIfirstname.lastname@example.org:mraym/php-drie-starter-app.git
After a while, the status of your app will be 'deployed' and the web address will become available: http://web_UNIQUE_APP_NAME.app.drie.co.
Congratulations! Your PHP app is now deployed on drie!