xyu / heroku-wp Goto Github PK
View Code? Open in Web Editor NEWWordPress on Heroku
License: MIT License
WordPress on Heroku
License: MIT License
On login with the actual credentials WordPress not redirect to admin page and not show any errors. Could you please to help me to fix it?
Url:
http://example.herokuapp.com/wp-login.php?redirect_to=http%3A%2F%2Fexample.herokuapp.com%2Fwp-admin%2Fprofile.php&reauth=1
Hi,
is it possible to create a custom plugin which replaces S3 in order to use my own hosting for assets storage ?
I've included a theme folder inside public/wp-content/themes and pushed to heroku. I've confirmed that the theme folder has been include (via heroku run bash && cd ...
), but the theme is not visible in my dashboard? Any thoughts?
Props to @dzuelke for the tip.
"Font from origin 'http://example.herokuapp.com' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://blog.example.com' is therefore not allowed access."
I have been receiving this error which has made some of my fonts inactive on my blog's domain.
I understand that NGINX does not allow access to the .htaccess file, is there a similar fix that can be done in the app_nginx.conf file or is there something else I can do to fix this issue.
Hello
I've noticed the following behavior :
I have installed wordpress on heroku with mhoofman repository and uploaded a the Visual Composer plugin and it works fine but i have found that BBPress plugin is not working
I have installed wordpress on heroku with your repository and uploaded just the same, the Visual Composer and BBPress plugin, but i have a completely different behavior : bbpress is working and visual composer is not working, do you have an idea on the reason why ?
Hello,
I'm using heroku-wp to deploy a wordpress with Heroku. A new version of Wordpress (4.2.1) was released a week ago.
How can we upgrade Wordpress version ?
Thank you,
Jordane
Thanks for the nice project!
I can't get mail when register, I have searched the issues list, but no luck.
How can I get rid of it?
When vagrant reload project all uploaded images removed
After setting up WP Read-Only with bucket permissions jazz, is it possible to upload plugins and themes to that bucket?
There must be something wrong in the setup as I get this error:
{
error: "jetpack_error",
message: "The Jetpack site is inaccessible or returned an error: server error. requested method jetpack.jsonAPI does not exist. [-32601]"
}
When accessing my site via wordpress.com's API:
https://public-api.wordpress.com/rest/v1/sites/my-wordpress-site.herokuapp.com
Got any ideas?
When I ran vagrant up --provider=virtualbox
on my MacBook (running Mavericks) I got the following error message:
The provider 'virtualbox' that was requested to back the machine
'herokuwp' is reporting that it isn't usable on this system. The
reason is shown below:
Vagrant has detected that you have a version of VirtualBox installed
that is not supported. Please install one of the supported versions
listed below to use Vagrant:
4.0, 4.1, 4.2, 4.3
How would you run this in your local development environment? atm, I'm littering commits and pushes to Heroku so I'm probably just missing a n00by move. Cheers and thanks for creating this flow.
.gitignore's vendor line should actually be
/vendor/
and not
vendor/
Otherwise all vendor directories, no matter where they are, are ignored, which results in broken plugins.
I tried to push my app to the new cedar-14 public beta stack and got this error:
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Exiting with failure status due to previous errors
! Push rejected, failed to compile PHP app
It works normal with the actual cedar stack.
This project is awesome!!! Would you translate to dockerfile format? Thank you!!!
Please update to Wordpress 4.5.2
I keep getting this error when trying to update via composer.
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package hhvm could not be found in any version, there may be a typo in the package name.
Potential causes:
Read http://getcomposer.org/doc/articles/troubleshooting.md for further common problems.
wanted to request/ask for optional HHVM. only reasoning is my inability to get it to compile properly on OS X for a lack of better reason... unless someone has insight on how to fix this as I can provide some logs on whats erroring.
thanks!
Having some issue running this locally after following the read-me's instructions for getting it up and moving with Vagrant. After running 'vagrant up', heroku.local/ fails to resolve.
The Vagrant box is running, and hitting the IP specified on line 4 of the Vagrantfile (192.168.50.100) returns a page saying that nginx is running and needs further configuration.
All that said, this is my first real foray into Vagrant, so it's entirely possible I'm missing something.
Have you tested it with file uploads? I configured the WPRO settings correctly but file uploads fail... I can see the operation happening but when I open the media the URL is empty and the S3 bucked misses the file. Permissions should be set correctly
I deployed Wordpress to Heroku really straightforward thanks to this cool project!
However, I need to create a blog in Italian and I was expecting to be able to change the site language in the admin panel (as I've done on a previous 4.1 install of mine), but only English was selectable:
I also tried to comment wp-config.php#L134 but no luck.
Is that because Wordpress is installed as a composer package? I have another WP Heroku deploy which is using the 4.1 branch on github, and I was able to select among all languages there.
Thank you!
Hi,
First of all, thanks for the great tutorial, it works!
However, when I follow the instruction to set a custom domain, e.g.
heroku domains:add www.example.com
It only work on the front page only, for the link that referenced in the front page, it still use the *.herokuapp.com domain.
Any idea to solve?
Getting the following errors during VM provisioning. I'm also unable to reach the VM at heroku.local on my local machine, even after making the suggested host entry.
==> herokuwp: Unpacking hhvm (3.5.1~trusty) ...
==> herokuwp: dpkg: dependency problems prevent configuration of hhvm:
==> herokuwp: hhvm depends on libboost-filesystem1.54.0; however:
==> herokuwp: Package libboost-filesystem1.54.0 is not installed.
==> herokuwp: hhvm depends on libboost-program-options1.54.0; however:
==> herokuwp: Package libboost-program-options1.54.0 is not installed.
==> herokuwp: hhvm depends on libboost-system1.54.0; however:
==> herokuwp: Package libboost-system1.54.0 is not installed.
==> herokuwp: hhvm depends on libboost-system1.54.0; however:
==> herokuwp: Package libboost-system1.54.0 is not installed.
==> herokuwp: hhvm depends on libboost-regex1.54.0; however:
==> herokuwp: Package libboost-regex1.54.0 is not installed.
==> herokuwp: hhvm depends on libc-client2007e; however:
==> herokuwp: Package libc-client2007e is not installed.
==> herokuwp: hhvm depends on libmcrypt4; however:
==> herokuwp: Package libmcrypt4 is not installed.
==> herokuwp: hhvm depends on libmemcached10; however:
==> herokuwp: Package libmemcached10 is not installed.
==> herokuwp: hhvm depends on libonig2; however:
==> herokuwp: Package libonig2 is not installed.
==> herokuwp: hhvm depends on libtbb2; however:
==> herokuwp: Package libtbb2 is not installed.
==> herokuwp: hhvm depends on libjemalloc1 (>= 3.0.0); however:
==> herokuwp: Packa
==> herokuwp: dpkg: error processing package hhvm (--install):
==> herokuwp: dependency problems - leaving unconfigured
==> herokuwp: Processing triggers for ureadahead (0.100.0-16) ...
==> herokuwp: Errors were encountered while processing:
==> herokuwp: hhvm
Then...
==> herokuwp: Cannot create cache directory /root/.composer/cache/repo/https---wpackagist.org/, or directory is not writable. Proceeding without cache
==> herokuwp: Cannot create cache directory /root/.composer/cache/repo/https---wp-cli.org-package-index/, or directory is not writable. Proceeding without cache
==> herokuwp: Cannot create cache directory /root/.composer/cache/repo/https---packagist.org/, or directory is not writable. Proceeding without cache
==> herokuwp: Cannot create cache directory /root/.composer/cache/files/, or directory is not writable. Proceeding without cache
==> herokuwp: Loading composer repositories with package information
==> herokuwp: Installing dependencies (including require-dev) from lock file
==> herokuwp: Your requirements could not be resolved to an installable set of packages.
==> herokuwp:
==> herokuwp: Problem 1
==> herokuwp: - This package requires php ~7.0 but your HHVM version does not satisfy that requirement.
Props to @dzuelke for the tip.
The buildpack now supports the real IP module (heroku/heroku-buildpack-php#59), we should use it to get the proper IP.
Google will use HTTPS as a ranking signal: http://googleonlinesecurity.blogspot.co.at/2014/08/https-as-ranking-signal_6.html
So it would be great if Wordpress would be secure and fast
Is it possible to configure nginx on Heroku to support SPDY?
http://nginx.org/en/docs/http/ngx_http_spdy_module.html
Seem to be getting this response:
2014-07-25T10:28:33.034777+00:00 heroku[router]: http_error="Invalid HTTP status line" at=error code=H17 desc="Poorly formatted HTTP response" method=GET path="/" host=infinite-anchorage-1040.herokuapp.com request_id=082ba25e-bd2d-4b5a-9dc0-6dab09589cd1 fwd="90.216.246.68" dyno=web.1 connect=1 service=290 status=503 bytes=551
2014-07-25T10:28:33.873973+00:00 app[web.1]: 10.87.81.28 - - [25/Jul/2014:10:28:33 +0000] "GET / HTTP/1.1" 302 5 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:19.0) Gecko/20100101 Firefox/19.0"
https://devcenter.heroku.com/articles/error-codes#h17-poorly-formatted-http-response
Nginx config?
Hi,
I am getting the following error when trying to access my site:
\nFatal error: File not found: /app/public.built/wp-includes/random_compat/random.php in /app/public.built/wp-includes/compat.php on line 338
THanks,
I noticed that gzip compression was not turned on for ngnix. There is a missing statement, in particular:
gzip_proxied any;
This is because any Heroku instance is proxied, so ngnix will ignore gzip compression directives unless this statement is present.
Thanks,
Ava
After going through the setup steps in the README for running locally, my vagrant instance fails to mount the NFS shared folders:
$ vagrant up
Bringing machine 'herokuwp' up with 'virtualbox' provider...
==> herokuwp: Box 'ubuntu/trusty64' could not be found. Attempting to find and install...
herokuwp: Box Provider: virtualbox
herokuwp: Box Version: >= 0
==> herokuwp: Loading metadata for box 'ubuntu/trusty64'
herokuwp: URL: https://atlas.hashicorp.com/ubuntu/trusty64
==> herokuwp: Adding box 'ubuntu/trusty64' (v20150609.0.10) for provider: virtualbox
herokuwp: Downloading: https://atlas.hashicorp.com/ubuntu/boxes/trusty64/versions/20150609.0.10/providers/virtualbox.box
==> herokuwp: Successfully added box 'ubuntu/trusty64' (v20150609.0.10) for 'virtualbox'!
'...
==> herokuwp: Configuring and enabling network interfaces...
==> herokuwp: Exporting NFS shared folders...
==> herokuwp: Preparing to edit /etc/exports. Administrator privileges will be required...
Password:
The nfsd service does not appear to be running.
Starting the nfsd service
==> herokuwp: Mounting NFS shared folders...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
mount -o 'vers=3,udp' 192.168.50.1:'/Users/alexortiz/Development/heroku-wp' /app
Stdout from the command:
Stderr from the command:
stdin: is not a tty
mount.nfs: Connection timed out
I found this stackoverflow answer that seems to suggest the config format for setting up NFS mounts in version 1.6+ is different:
http://stackoverflow.com/questions/26700249/cannot-mount-vagrant-synced-folder-with-nfs
Found the solution for the problem here hashicorp/vagrant#2546
The correct syntax for vagrant version 1.3 to 1.6 is:
config.vm.synced_folder ".", "/vagrant", :nfs => { :mount_options => ["dmode=777","fmode=777"] }
I'm using a brand-new install of vagrant:
$ vagrant --version
Vagrant 1.7.4
I'm on MacOSX 10.10.3
Hi there,
I have found wpro to be buggy, poorly written & maintained. I gave up with it and discovered the following plugins which have worked very well with no hassle and provide a far better experience:
https://github.com/deliciousbrains/wp-amazon-web-services
https://github.com/deliciousbrains/wp-amazon-s3-and-cloudfront
I suggest you'd like to bundle these instead of wpro.
Thanks
Tom
Getting this error during setup:
Waiting for Heroku Redis to provision [ ]./init.sh: line 52: local: can only be used in a function
./init.sh: line 55: ((: ? != 0: syntax error: operand expected (error token is "? != 0")
./init.sh: line 62: print: command not found
▸ local database is not available, try again in a few minutes
▸ local database is not available, try again in a few minutes
I then get "Error establishing connection to database" when I visit the site.
Is this a bug? Or am I doing something wrong?
I'm getting 404 errors for permalinks in local development.
You can see my full repo here: https://github.com/michaelward82/lisa/tree/production
Let me know which logs you might like to see to help diagnose the issue.
I'm migrating an existing site from LAMP hosting provider to Heroku and got almost everything working. The main issue is that permalinks don't work. In fact, changing the setting in Settings -> Permalinks says that it updated the setting it always gets set to the default option (ugly links with page ID). I tried adding a .htaccess to /public but it didn't help.
The second issue I'm running into is most probably theme specific. The theme has a style.css with default values and a style.php the pulls values from the DB using get_option(). On restart, the static CSS file is served. If I go to the theme's settings page and hit save without changing anything then the generated CSS file kicks in.
I have successfully installed wordpress using your way. Now I want to edit some files of wordpress I check in local and remote repo. Unable to find wordpress files
I'm a little confused on how we should go about using this with a private repo containing wp-content that houses our custom plugins and theme. Normally I can either deploy entire WP site Github repo to server or add the wp-content folder as a repo on the server and pull whenever I make plugin/theme/wp changes.
"Because a file cannot be written to Heroku's file system, updating and installing plugins or themes should be done locally and then pushed to Heroku."
What does that mean? SCP files to the heroku instance? Sorry I'm just new to Heroku/Composer for Wordpress.
Hello
Thanks for your great work
I need to find the theme editor but it seems it is not available ? how can i have access to it ?
Thanks for your help
Apologies in advance because this may not be a real issue.
Using S3 for uploads is great, but serving assets from S3 is not recommend and it's more expensive than using Cloudfront.
What would be your recommended approach for solving this problem?
I've looked into using a plugin like W3 Total Cache, but I believe this conflicts with using Batcache.
BTW, great repos. Found this via HN. 👍
I've added a custom PHP INI configuration as directed here: https://devcenter.heroku.com/articles/custom-php-settings#user-ini-files-recommended
upload_max_filesize = 20M
post_max_size = 25M
However, Heroku seems to completely ignore this setting. How is it possible to increase the max upload size with this package?
Generating optimized autoload files
remote: cp: cannot stat ‘public/’: No such file or directory
remote: Script cp -R public/ tmp/public.building handling the post-install-cmd event returned with an error
[RuntimeException]
remote: Error Output: cp: cannot stat ‘public/*’: No such file or directory
I have run this package exactly as described in the readme but I get this error every time
Any thoughts?
I noticed a problem with the memcachier addon.
After I changes my MemCachier to any paid plan, I can't login into wp-admin (It redirects me back to the login panel without an error message).
After changing the plan to the free dev-version, it works again.
Hi,
I got this error at the installation:
➜ heroku-wp git:(mdacne-wp) heroku run wp core install \
--url=xxxx.herokuapp.com \
--title="blog" \
--admin_user="admin" \
--admin_password="xxxxxxx" \
--admin_email="[email protected]"
Running wp core install --url=mdacne-wp.herokuapp.com "--title=MDacne blog" --admin_user=admin --admin_password=mdacne-is-the-best [email protected] on ⬢ mdacne-wp... up, run.2703 (Free)
WordPress database error Table 'jdkxdktie8zjglxg.wp_options' doesn't exist for query INSERT INTO `wp_options` (`option_name`, `option_value`, `autoload`) VALUES ('uninstall_plugins', 'a:2:{i:0;b:0;s:45:\"secure-db-connection/secure-db-connection.php\";s:32:\"WP_SecureDBConnection::uninstall\";}', 'yes') ON DUPLICATE KEY UPDATE `option_name` = VALUES(`option_name`), `option_value` = VALUES(`option_value`), `autoload` = VALUES(`autoload`) made by include('/app/vendor/wp-cli/wp-cli/php/wp-cli.php'), WP_CLI\Runner->start, WP_CLI\Runner->load_wordpress, require('wp-settings.php'), include_once('/mu-plugins/secure-db-connection/secure-db-connection.php'), register_uninstall_hook, update_option, add_option
sh: 1: -t: not found
Success: WordPress installed successfully.
I wonder what this error means?
The blog seems to work, but I'm new to WP so maybe this could lead to a problem in the future.
We how have some docs on how to connect to the MySQL instance in the VM (#30) however we should make the defaults better so that we don't have to SSH tunnel to do this.
Out of a sudden when I tried to enter the admin I got this message:
Your WordPress database is already up-to-date!
And the admin was blocked.
Turns out that this is a problem caused by Redis. Flushing Redis fixed it (temporarily of course)
Is there a way to fix this bug permanently?
Tried to upgrade to 4.3.1. composer update --ignore-platform-reqs
wasn't sufficient. The README should provide better instructions or perhaps use https://github.com/johnpbloch/wordpress-core-installer to declare the dependency more simply?
When I try to login or register, the site redirect to https. Why?
Can I keep http?
Thanks for your help!
Did you know that wp-db can be replaced? So no need to hack it.
See in this sqlite plugin.
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.