This file contains 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
1. Add a custom DNS entry | |
# File: /etc/hosts | |
127.0.0.1 site.test | |
2. In nginx conf file, tell it to reverse proxy all requests from site.test to http://localhost:3000 | |
# File: /etc/nginx/sites-enabled/site.conf | |
server { |
This file contains 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
$ git push heroku master | |
Counting objects: 667, done. | |
Delta compression using up to 4 threads. | |
Compressing objects: 100% (570/570), done. | |
Writing objects: 100% (667/667), 8.07 MiB | 92.00 KiB/s, done. | |
Total 667 (delta 157), reused 0 (delta 0) | |
remote: Compressing source files... done. | |
remote: Building source: | |
remote: | |
remote: -----> Go app detected |
This file contains 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
import java.util.Scanner; | |
class EnterTestScores { | |
public static void main (String[] args){ | |
Scanner scanner = new Scanner (System.in); | |
String reply; | |
int n = 0; | |
double score; | |
Student[] students = new Student[50]; | |
for (int i=0; i<50; i++){ |