-
Below is a list of the most common issues that students present when trying to do Heroku deployments.
-
Index.php file or Composer.json is no where to be found: The index.php file is like Heroku's map to your starting HTML file. Once it has that file all other references will work. Often students are completely missing the
index.php
orcomposer.json
file. Often they have these files in completely different directories without realizing it. These files need to be in the same folder as their starting HTML file. These files also need to be at the highest level of the folder being pushed (i.e. you can't haveindex.php
orcomposer.json
in a sub-folder) -
Index.php file path is pointing to the wrong file: Often students, just copy and paste the filename you use in the index.php file. They need to make sure the filename matches their HTML filename.
-
Faulty Syntax on Index.php file: Ensure that students have the correct syntax in the In
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// JavaScript Techniques for Selectors | |
var something = document.getElementById("the-id-name"); | |
var something = document.getElementsByTagName("p"); | |
var something = document.getElementsByClassName("class-name"); | |
var something = document.querySelector("#id-name"); | |
var something = document.querySelector(".class-name"); | |
var something = document.querySelector("element"); | |
var something = document.querySelectorAll("p.intro"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>jQuery App Template</title> | |
<!-- Added link to the jQuery Library --> | |
<script src="https://code.jquery.com/jquery-3.1.1.js"></script> | |
<!-- Added a link to Bootstrap--> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Scope Examples</title> | |
</head> | |
<body> | |
<script> | |
a = "The a variable"; | |
var f = "The f variable"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// for-loop | |
for (counter = 0; counter < array.length; counter++) { | |
// do some stuff! | |
} | |
// if-then-else | |
if (x < y) { | |
// do something |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Title Text</title> | |
<link rel="stylesheet" href="[PATH or URL]"> | |
</head> | |
<body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= f.collection_check_boxes :venue_ids, Venue.all, :id, :name, checked: Venue.all.map(&:id) do |b| %> | |
<span> | |
<%= b.check_box %> | |
<%= b.label %> | |
</span> | |
<% end %> |
Something does not look right here, we do not use the cluster name as part of the data path anymore. Please remove Elasticsearch:
$ brew remove elasticsearch
$ rm -rf /usr/local/var/elasticsearch
$ rm -rf /usr/local/etc/elasticsearch
and start again:
$ brew install elasticsearch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Activity 1: Basic HTML Bio --> | |
<!DOCTYPE html> | |
<html lang="en-us"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Activity 1: Basic HTML Bio</title> | |
</head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new text! |