August 9, 2022

WeAnswer

The complete guide to the beginners as well as to the experienced Web Developers

Setup heroku PHP, MySQL

Requirement

  • Heroku account
  • Git installed on your machine

 PHP Code Deploy

  • Download Heroku application and install https://devcenter.heroku.com/articles/getting-started-with-php#set-up
  • Open command prompt
  •  command: heroku login
  • Enter email and password login account
  •  command git clone https://github.com/heroku/php-getting-started.git
  •  command: Open new project directory: cd htdoc/php-getting-started
  • command: heroku create
  • Move your project to codeigniter-project folder
  • command: git push heroku master

MySQL Deploy

  • command : heroku config | grep CLEARDB_DATABASE_URL
  • save return URL from above command

  • You can import sql file via https://www.mysql.com/products/workbench/