2021-02-18 (Before wizard setup) Build Wordpress environment
Preface
Main idea: Getting access to web server for wordpress installation
What next?
Setup DB (I'm prefer to MySQL)
Getting wordpress
Download Wordpress source code at https://wordpress.org/download/
Deploy to heroku
Local environment
login to heroku cli
The heroku service can be used just with command line. To get tit use the heroku cli
command.
After that, create new apps in heroku called "gealtikwordpress"
bima at x220 in ~
↪ heroku create -a gealtikwordpress
› Warning: heroku update available from 7.47.6 to 7.47.12.
Creating ⬢ gealtikwordpress... done
https://gealtikwordpress.herokuapp.com/ | https://git.heroku.com/gealtikwordpress.git
bima at x2
Setup git remote & push it heroku apps repository
git init
git add --all
git commit -m "first commit"
heroku git:remote -a gealtikwordpress
git push heroku master
Push output
Counting objects: 2459, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2373/2373), done.
Writing objects: 100% (2459/2459), 15.20 MiB | 27.00 KiB/s, done.
Total 2459 (delta 240), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Building on the Heroku-20 stack
remote: -----> PHP app detected
remote:
remote: ! WARNING: No 'composer.json' found!
remote: !
remote: ! Your project only contains an 'index.php', no 'composer.json'.
remote: !
remote: ! Using 'index.php' to declare app type as PHP is deprecated and
remote: ! may lead to unexpected behavior.
remote: !
remote: ! Please consider updating your codebase to utilize Composer and
remote: ! modern dependency management in order to benefit from the latest
remote: ! PHP runtimes and improved application performance, as well as
remote: ! control over the PHP versions and extensions available.
remote: !
remote: ! For an introduction to dependency management with Composer and
remote: ! how to get the most out of PHP on Heroku, refer to the docs at
remote: ! https://getcomposer.org/doc/00-intro.md and
remote: ! https://devcenter.heroku.com/articles/getting-started-with-php
remote:
remote: -----> Bootstrapping...
remote: -----> Installing platform packages...
remote: NOTICE: No runtime required in composer.lock; using PHP ^7.0.0 | ^8.0.0
remote: - apache (2.4.46)
remote: - nginx (1.18.0)
remote: - php (8.0.2)
remote: - composer (1.10.20)
remote: -----> Installing dependencies...
remote: Composer version 1.10.20 2021-01-27 15:41:06
remote: -----> Preparing runtime environment...
remote: NOTICE: No Procfile, using 'web: heroku-php-apache2'.
remote: -----> Checking for additional extensions to install...
remote: -----> Discovering process types
remote: Procfile declares types -> web
remote:
remote: -----> Compressing...
remote: Done: 29.8M
remote: -----> Launching...
remote: Released v3
remote: https://gealtikwordpress.herokuapp.com/ deployed to Heroku
remote:
remote: Verifying deploy... done.
To https://git.heroku.com/gealtikwordpress.git
* [new branch] master -> master
My application already to run the wordpress wizard now.
Address: http://gealtikwordpress.herokuapp.com/wp-admin/setup-config.php
I'm notice that this wizard does not save database credentials in persistence data (repo, or pull to the local repo).
If you have push some commit it's just give you these wizard again. So, the consequences is other config is needed to declare database credentials. Spesificly, see an example at wp-config-sample.php
.

Last updated
Was this helpful?