Hello,
Here is a way by which you can deploy wordPress on Heroku, by using following sets of command-
Step1-
Run the following command on your terminal-
Step2-
Open the cloned directory by using following command-
Step3-
Create an account on heroku by using https://signup.heroku.com/login
Step4-
Install the Heroku CLI by using instruction on https://devcenter.heroku.com/articles/heroku-command
Step5-
Run the following command in terminal-
Step6-
Run the following command on terminal, so that an app will created on heroku-
Step7-
If you want, you can rename the app but it is not necessary-
Step8-
Add database to your app by using following command-
Step9-
Replace HEROKU_POSTGRESQL_INSTANCE with the name from the above output-
Step10-
Create a new branch for any configuration/setup changes needed.
Step11-
Store unique keys and salts in Heroku environment variables. WordPress can provide random values here.
Push the new changes on heroku-
Now, you can use your app.
Thanks...
Here is a way by which you can deploy wordPress on Heroku, by using following sets of command-
Step1-
Run the following command on your terminal-
git clone git://github.com/mhoofman/wordpress-heroku.git
Step2-
Open the cloned directory by using following command-
cd wordpress-heroku
Step3-
Create an account on heroku by using https://signup.heroku.com/login
Step4-
Install the Heroku CLI by using instruction on https://devcenter.heroku.com/articles/heroku-command
Step5-
Run the following command in terminal-
heroku login
Step6-
Run the following command on terminal, so that an app will created on heroku-
heroku create
Step7-
If you want, you can rename the app but it is not necessary-
heroku apps:rename NameOfApp
Step8-
Add database to your app by using following command-
heroku addons:create heroku-postgresql
Step9-
Replace HEROKU_POSTGRESQL_INSTANCE with the name from the above output-
heroku pg:promote HEROKU_POSTGRESQL_INSTANCE
Step10-
Create a new branch for any configuration/setup changes needed.
git checkout -b production
Step11-
Store unique keys and salts in Heroku environment variables. WordPress can provide random values here.
heroku config:set AUTH_KEY='put your unique phrase here' \
SECURE_AUTH_KEY='put your unique phrase here' \
LOGGED_IN_KEY='put your unique phrase here' \
NONCE_KEY='put your unique phrase here' \
AUTH_SALT='put your unique phrase here' \
SECURE_AUTH_SALT='put your unique phrase here' \
LOGGED_IN_SALT='put your unique phrase here' \
NONCE_SALT='put your unique phrase here'
Step12-
Push the new changes on heroku-
git push heroku production:master
Now, you can use your app.
Thanks...
No comments:
Post a Comment