Giter Club home page Giter Club logo

example-php's Introduction

PHP Quick Start Guide

This guide will walk you through deploying a PHP application on Deis Workflow.

Usage

$ git clone https://github.com/teamhephy/example-php.git
$ cd example-php
$ deis create phptest
Creating Application... done, created phptest
Git remote deis added
remote available at ssh://[email protected]:2222/phptest.git
$ deis config:set BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-php
$ git push deis
Counting objects: 247, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (176/176), done.
Writing objects: 100% (247/247), 376.76 KiB | 1.32 MiB/s, done.
Total 247 (delta 61), reused 247 (delta 61)
remote: Resolving deltas: 100% (61/61), done.
Starting build... but first, coffee!
-----> Restoring cache...
       No cache file found. If this is the first deploy, it will be created now.
-----> Fetching custom buildpack
-----> PHP app detected
-----> Bootstrapping...
-----> Installing platform packages...
       - php (7.3.1)
       - apache (2.4.37)
       - nginx (1.8.1)
-----> Installing dependencies...
       Composer version 1.8.0 2018-12-03 10:31:16
       Loading composer repositories with package information
       Installing dependencies from lock file
       Package operations: 5 installs, 0 updates, 0 removals
         - Installing psr/http-message (1.0.1): Downloading (100%)
         - Installing pimple/pimple (v3.0.2): Downloading (100%)
         - Installing nikic/fast-route (v1.0.1): Downloading (100%)
         - Installing container-interop/container-interop (1.1.0): Downloading (100%)
         - Installing slim/slim (3.5.0): Downloading (100%)
       Generating optimized autoload files
-----> Preparing runtime environment...
-----> Checking for additional extensions to install...
-----> Discovering process types
       Procfile declares types -> web
       Default process types for PHP -> web
-----> Checking for changes inside the cache directory...
       Files inside cache folder changed, uploading new cache...
       Done: Uploaded cache (232K)
-----> Compiled slug size is 16M
Build complete.->
Launching App...
...
...
...
Done, phptest:v3 deployed to Workflow

Use 'deis open' to view this application in your browser

To learn more, use 'deis help' or visit https://deis.com/

To ssh://deis-builder.deis.rocks:2222/phptest.git
 * [new branch]      master -> master

 $ curl http://phptest.deis.rocks
 Powered by Deis
 Release v3 on phptest-web-766c6464dc-hf8xw

Considerations

It is useful to specify which BuildPack must be used before deploying.

deis config:set BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-php

Additional Resources

example-php's People

Contributors

cryptophobia avatar dshafik avatar joshua-anderson avatar mboersma avatar tolstenko avatar xe 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.