Deployement

This article explains how to deploy your PHP application live in your own production environment.


Deploy the demo to Heroku

To view the demo application live in your own production environment, follow these steps:

1. Create a Heroku account

To create a new Heroku account, follow the link: https://signup.heroku.com/.

2. Login to Heroku from the terminal

Copy
heroku login

3. Create a new Heroku application

Copy
heroku create

4. Add Heroku remote

Copy
# Add heroku remote
heroku git:remote -a <name-of-the-newly-created-app>

# Check the remotes available
# Newly added `heroku` remote repository connection should be shown
git remote -v

5. Commit your changes

Copy
# Commit the most recent work on the development branch
git add .
git commit -m 'Write a clear meaningful commit message here'

6. Deploy to Heroku:

Copy
git push heroku master

7. Open the app in the browser

Copy
heroku open

Was this article helpful?
Not really
Yes, Thanks

Can't find what you're looking for? Get in touch with us on our Community Forum.