-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
61 lines (44 loc) · 1.43 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Install Docker for Mac
# QUICK METHOD: Start Docker
Use the "Docker Quickstart Terminal" in Applications
Allow to run until new terminal prompt is displayed
# TRADITIONAL METHOD: Start Containers for the project from regular terminal window
$ cd ~/repos/sntchallenge
$ docker-compose up -d
# ADD THE BELOW TO YOUR HOSTS FILE
127.0.0.1 local.sntchallenge.com
# URL - still have to setup HTTPS for docker later
http://local.sntchallenge.com
# CHMOD ctl file for perission to execute
$ cd ~/repos/snt-code-challenge
$ sudo chmod 755 ctl
-------
# WORKING DIRECTORY FOR APP FILES
~/repos/snt-code-challenge/sntchallenge.com/public_html
# HELPFUL COMMANDS
# To SSH into snt-code-challenge apache or mysql containers
$ ./ctl apache #enter the apahce container
$ ./ctl mysql #enter the mysql container
# To shut down Docker Containers
$ docker-compose down
# Clean up dangling volumes
$ docker-compose rm -v
# To shut down Docker Machine
$ docker-compose stop
---------
# Sequel Pro Setup
# Settings for Sequel Pro - Standard
Host: db
Username: root
Password: 2gwHG!hv!wKL
Add snt_challenge user:
Username: snt_challenge
Password: 2gwHG!hv!wKL
Add or Change Host for new sntchallenge user
Host: %
Give full permissions for snt_challenge user to snt_challenge db
---------
# SNT CHALLENGE FUNCTIONS
> run artisan migrations
> run task scheduler jobs to populate db data
> hit one of three endpoints to view home_wx_facts data (see routes.php file)