Coder Social home page Coder Social logo

dokku-wordpress's People

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

dokku-wordpress's Issues

Failed to download minimal PHP

Hi,

With the new version it can't install the buildpacks. When removing the .buildpacks, it works.

remote:  !     
remote:  !     This is most likely a temporary internal error. If the problem
remote:  !     persists, make sure that you are not running a custom or forked
remote:  !     version of the Heroku PHP buildpack which may need updating.
remote: 

Unable to select custom buildpack

Hi everyone! I experienced issue with using this buildpack to deploy a wordpress app.

This is the short message:

-----> Cleaning up...
-----> Building wordpress from herokuish...
-----> Adding BUILD_ENV to build environment...
-----> Fetching custom buildpack
remote: setuidgid: fatal: unable to run /tmp/buildpacks/custom/bin/detect: file does not exist
-----> Unable to select a buildpack

dokku config:

BUILDPACK_URL: https://github.com/dokku-community/dokku-wordpress
DOKKU_APP_TYPE: herokuish
DATABASE_URL: <some_url>
DOKKU_DEPLOY_BRANCH: production

dokku trace:

remote: ++ DOKKU_APP_TYPE=herokuish
remote: ++ DOKKU_DEPLOY_BRANCH=production
-----> Fetching custom buildpack
remote: + indent
remote: + read -r line
remote: + buildpack-execute
remote: + _select-buildpack
remote: + [[ -n https://github.com/dokku-community/dokku-wordpress ]]
remote: + title 'Fetching custom buildpack'
----->' 'Fetching custom buildpack'
-----> Fetching custom buildpack == --* ]]
-----> Fetching custom buildpack == ==* ]]
-----> Fetching custom buildpack'
remote: + read -r line
remote: + selected_path=/tmp/buildpacks/custom
remote: + rm -rf /tmp/buildpacks/custom
remote: + IFS='#'
remote: + read -r url commit
remote: + buildpack-install https://github.com/dokku-community/dokku-wordpress '' custom
remote: + chown -R herokuishuser:herokuishuser /tmp/buildpacks/custom
remote: ++ unprivileged /tmp/buildpacks/custom/bin/detect /tmp/build
remote: ++ setuidgid herokuishuser /tmp/buildpacks/custom/bin/detect /tmp/build
-----> Unable to select a buildpack
remote: setuidgid: fatal: unable to run /tmp/buildpacks/custom/bin/detect: file does not exist

I am new in dokku, so may be the issue is not related with buildpack or I have to provide additional info.

Push failing and slim down git repo

Since this uses git clone to create the initial repo we end up pushing over 200k objects for a simple wordpress install.

I've also opened this since following the instructions leads to an error and I don't use PHP or dokku enough to know what's breaking this.

โžœ  blog.ace.hosts.wvvw.me git:(master) git push dokku master
Counting objects: 229668, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (47296/47296), done.
Writing objects: 100% (229668/229668), 145.54 MiB | 1.70 MiB/s, done.
Total 229668 (delta 181542), reused 229639 (delta 181529)
-----> Cleaning up...
-----> Building blog.ace.hosts.wvvw.me from herokuish...
-----> Adding BUILD_ENV to build environment...
-----> Warning: Multiple default buildpacks reported the ability to handle this app. The first buildpack in the list below will be used.
       Detected buildpacks: multi php
-----> Multipack app detected
=====> Downloading Buildpack: https://github.com/heroku/heroku-buildpack-php.git
=====> Detected Framework: PHP
-----> Bootstrapping...
remote: 
remote: gzip: stdin: not in gzip format
remote: tar: Child returned status 1
remote: tar: Error is not recoverable: exiting now
To ace.hosts.wvvw.me:blog.ace.hosts.wvvw.me
 ! [remote rejected]     master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:blog.ace.hosts.wvvw.me'

.htaccess rewrite rules

Pages become 404 when the app is restarted. How do I flush the rewrite rules automatically?
Or can I make it persistent?

Using PHP 7

Since wordpress supports PHP 7, should we better switch to that? Heroku PHP buildpack also supports the latest 7.1. I tested it with the following composer.json:

{"require": {"php": ">=7.1", "ext-gd": "*"}}

The mysql extension is enabled by default in PHP7, so no need to require it, see https://devcenter.heroku.com/articles/php-support#extensions.

Document an upgrade process

The instructions for setup are easy to follow, but it leaves out how to upgrade entirely. With the WordPress files in the container, Wordpress's own upgrade process fails (it just leaves your old version) and even if that were to work, an app restart would lose any of those changes.

How do we upgrade an already created app?

specified buildpack fails

Just tried this procedure and it failed until I removed the .buildpacks file and let herokuish select it's own buildpack. FYI.

How to modify upload file size limits?

I've added an .htaccess file with the following values

php_value upload_max_filesize 40M
php_value post_max_size 42M 

but when app is deployed and I try to access it throws an internal server error, and in the logs ssh -t dokku@<dokku_server> logs <app> I found the following error

/app/.htaccess: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration

how may I increase the upload file size limit? it defaults to 2Mb

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.