Coder Social home page Coder Social logo

modess / deploying-php-applications Goto Github PK

View Code? Open in Web Editor NEW
132.0 16.0 32.0 15.75 MB

The book Deploying PHP applications, best practices and tools for deploying your PHP application.

Home Page: https://leanpub.com/deploying-php-applications

License: Other

Ruby 27.36% Shell 6.41% PHP 66.22%

deploying-php-applications's Introduction

Deploying PHP Applications

This repository contains the entire book Deploying PHP applications with code samples. If you enjoy the book, please consider buying it on Leanpub!

You can contribute by creating issues for reporting errors and typos in it. Or by forking the repository and creating a PR. All help is appreciated!

Deploying PHP applications

Creative Commons License
Deploying PHP Applications by Niklas Modess is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Contributors

In chronological order:

Changelog

1.0.1 - 2016-04-09

  • Updated Phing section to clarify it's a tool written in PHP
  • Updated symlink target location in Phing code example

1.0 - 2016-01-06

  • Added chapter 9 - "Running tests"
  • Added chapter 10 - "Logs and notifications"
  • Added "Conclusion"

0.1 - 2015-10-05

  • Open sourced the book
  • Added to chapter 3 - "Environments"
    • Environment variables
    • Server access
  • Added to chapter 5 - "Tools"
    • Capistrano
    • Rocketeer
  • Added chapter 7 - "Dependencies"
  • Added chapter 8 - "Database migrations"

deploying-php-applications's People

Contributors

divinedominion avatar krisell avatar kun0ichi avatar lex111 avatar mathieuimbert avatar modess avatar nigelkirby avatar olegatro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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

deploying-php-applications's Issues

Refusing to update checked out branch

Hi,

I bought your book (and just discovered it's now open source). Thank you for the awesome work!

Following your instruction I created a repository on my remote server.
After git init I created the post-receive hook file and added the following line:

#!/bin/bash
cd..
unset GIT_DIR

env -i git reset --hard
git checkout -f

I added the remote to my local git and performed a git push production master command to push...

Here is the output I received:

Counting objects: 781, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (720/720), done.
Writing objects: 100% (781/781), 32.39 MiB | 652.00 KiB/s, done.
Total 781 (delta 283), reused 0 (delta 0)
remote: error: refusing to update checked out branch: refs/heads/master
remote: error: By default, updating the current branch in a non-bare repository
remote: error: is denied, because it will make the index and work tree inconsistent
remote: error: with what you pushed, and will require 'git reset --hard' to match
remote: error: the work tree to HEAD.
remote: error:
remote: error: You can set 'receive.denyCurrentBranch' configuration variable to
remote: error: 'ignore' or 'warn' in the remote repository to allow pushing into
remote: error: its current branch; however, this is not recommended unless you
remote: error: arranged to update its work tree to match what you pushed in some
remote: error: other way.
remote: error:
remote: error: To squelch this message and still keep the default behaviour, set
remote: error: 'receive.denyCurrentBranch' configuration variable to 'refuse'.
To ssh://xxx/var/www/xxx/
 ! [remote rejected] master -> master (branch is currently checked out)
error: failed to push some refs to 'ssh://xxx/var/www/xxx/'

Questions:

  • What's wrong?
  • I used to do the same kind of flow but instead using a git init --bare repository.
  • What's the difference between the two repository (as I have a hard time to clearly understand while googling)

Last but not least, I have your e-mail. I have some questions I would like to discuss with you. Can I send?

Thanks for your help.

Great job again.

J.

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.