Unable to deploy / navigate using a simple web application

Start details:

  • Windows 7 Professional 64 bit
  • WAMP Version: 2.5
  • MySQL Version: 5.6.17
  • PHP Version: 5.5.12
  • Apache Version: 2.4.9

I also have Git, Heroku Toolbelt, etc.


I am trying to deploy a PHP inventory web application that I have on my computer using Heroku.

It is currently installed on my PC using the WAMP server. Until that moment, it was just a web application used in a country club, where any computer / phone / tablet could access and set up inventory if they were on the same wireless network as the server.

Right now, I'm trying to get to the point that the country club can access the application from anywhere, and decided that I can post it on Heroku.

Each tutorial I watch / read explains how to deploy one index.php file containing one line of code that says something like "Hello world!" but this application contains 8 folders and 22 php files, all in the "www" section of the WAMP file. I tried to study the concepts of how this works (creating a single file for everything, trying to deploy index.php I already have, etc.)

I tried textbooks and read and did Heroku a lot, but I can’t move forward with anything, adding user authentication or the ability to sell it to restaurants / country clubs. I read every word in Heroku tutorials, and I did not encounter one error during everything I try, but at the end of it all, when I try to open "heroku open", it opens a blank page.

The www directory contains: - cgi-bin - css - dbBackup - img - inc - js - tcpdf
- tmp

Then there are all the PHP files of the various application functions listed below.

My main question here is: what is the file that is deployed to Heroku in this situation? I don’t understand how CSS, JS, and other base-related functions are included in a single index.php file, which is apparently a file that was deployed when a web application like this was launched.

Thanks!

+4
source share
2 answers

The default page loaded when accessing the site is usually "index.html" or "index.htm". Usually this file contains content for creating the splash start page with links to various services that you can offer. These services are what you would use php to support data in a MySQL database. In addition to copying the base files and directories to the Heroku server, you will also need to create MySQL tables and then fill them with data. This is a relatively simple process using MySQL Workbench. This can be tedious if you have many tables and diagrams, but it is relatively simple. Please comment on the answer if you need help in this area or want to discuss further.

0
source

Heroku launches a standard web server and, by default, looks for "index.php" as the start file. You must have an index.htm, index.html or index.php file in the current database directory (www). If you do not, most likely you are currently launching your application by going to the URL (www.yourwebsite.com) and then using a slash and other text, such as "/tcpdf/startup.html".
If you have one of the indexes. files, then this is your starting point. Copy the full set of files and directories to your heroku site, and then test it based on the URL they provided you with, and it will automatically search for index.php file. You will need to create a backup and restore the database from the local system to the heroku server, which is relatively simple using the mysql toolkit. You will need to recreate the users and their permissions on the heroku website so that php files can access the new database.

0
source

All Articles