dokku-community / dokku-wordpress Goto Github PK
View Code? Open in Web Editor NEWA simple repository that will guide you through deploying wordpress on dokku
License: MIT License
A simple repository that will guide you through deploying wordpress on dokku
License: MIT License
Just tried this procedure and it failed until I removed the .buildpacks file and let herokuish select it's own buildpack. FYI.
I did try the dokku wordpress, and a lot of bugs and administration was necessary.
This tutorial made the wordpress much better and stable:
https://dev.to/jasminetracey/how-to-set-up-your-wordpress-site-on-dokku-24pj
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'
Pages become 404 when the app is restarted. How do I flush the rewrite rules automatically?
Or can I make it persistent?
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.
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:
This breaks resizing and cropping uploaded photos.
This can be fixed by just adding "ext-gd": "*"
to composer.json requirements
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?
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.