Giter Site home page Giter Site 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/deis/example-php.git
$ cd example-php
$ deis create
Creating Application... done, created zanier-zeppelin
Git remote deis added
remote available at ssh://[email protected]:2222/zanier-zeppelin.git
$ git push deis master
Counting objects: 224, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (153/153), done.
Writing objects: 100% (224/224), 368.18 KiB | 0 bytes/s, done.
Total 224 (delta 61), reused 224 (delta 61)
Starting build... but first, coffee!
-----> PHP app detected
-----> Bootstrapping...
-----> Installing platform packages...
       - php (7.0.9)
       - apache (2.4.20)
       - nginx (1.8.1)
-----> Installing dependencies...
       Composer version 1.1.3 2016-06-26 15:42:08
       Loading composer repositories with package information
       Installing dependencies from lock file
       - 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
-----> Compiled slug size is 14M
Build complete.
Launching App...
Done, zanier-zeppelin:v2 deployed to Deis

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

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

To ssh://[email protected]:2222/zanier-zeppelin.git
 * [new branch]      master -> master
$ curl http://zanier-zeppelin.deis.rocks
Powered by Deis
Release v2 on zanier-zeppelin-web-2969858146-wv4ss

Additional Resources

example-php's People

Contributors

dshafik avatar joshua-anderson avatar mboersma avatar xe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

example-php's Issues

Git Push - Issue

On a git push, I'm alerted with the below error. By referring to related issues and fixes I've updated composer to use the latest version of build-pack, doesn't seem to fix either. Please help to resolve,

Counting objects: 231, done.
Delta compression using up to 24 threads.
Compressing objects: 100% (166/166), done.
Writing objects: 100% (231/231), 371.84 KiB | 0 bytes/s, done.
Total 231 (delta 55), reused 231 (delta 55)
Starting build... but first, coffee!
-----> PHP app detected
-----> Bootstrapping...

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
remote: 2016/08/22 07:17:51 Error running git receive hook [Build pod exited with code 2, stopping build.]
To ssh://[email protected]:2222/decent-uptowner.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'ssh://[email protected]:2222/decent-uptowner.git'

"tar: invalid tar magic" when deploying to Deis

git push deis master of example-php currently fails:

...
Step 5 : ENV GIT_SHA 3c8688373922067ff936ad31ebbcfee60034dfe6
 ---> Running in d94c1666f10f
 ---> 5eeed9c57064
Removing intermediate container d94c1666f10f
Successfully built 5eeed9c57064
-----> Pushing image to private registry

tar: invalid tar magic
To ssh://[email protected]:2222/upbeat-dragster.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'ssh://[email protected]:2222/upbeat-dragster.git'

The php-getting-started example works fine, however, so I assume it's a problem with this app.

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.