-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnotes.txt
More file actions
75 lines (54 loc) · 1.46 KB
/
notes.txt
File metadata and controls
75 lines (54 loc) · 1.46 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// <script src="http://widget.cloudinary.com/global/all.js" type="text/javascript"></script>>
// <script type="text/javascript">
// window.staticImage = {
// logo: "<%= asset_url("slice.svg") %>"
// }
//
// window.cloudinary_options = {
// cloud_name: '<%= ENV['CLOUD_NAME'] %>',
// upload_preset: '<%= ENV["UPLOAD_PRESET"] %>'
// }
// </script>
text shadow, logo changed to text
Controllers
Photos-
new create destroy show edit update index
push to heroku lecture @ 4 pm?
bench bnb part 1 has a master checklist
1. heroku.com
2. new button,
app name
US region
3. download and install the heroku CLI
and run the command.
4. heroku login in command line
Use heroku git CLI method.
5. for existing git repositories, add heroku remote
6. add a key in package.json to tell heroku what versions.
"scripts": {
"postinstall": "webpack"
}
"engines": {
"npm": "3.10.7",
"node": "6.7.0"
}
(check npm -v to get npm version)
(check node -v to get node version)
7. add buildpack
Add nodejs buildpack first.
then add ruby buildpack.
8. push to heroku
git add .
git commit -m 'initial heroku push'
(only push master branch to heroku)
git push heroku master
9. need to setup db
10. heroku logs ( to debug)
11. heroku run rails db:migrate
(to migrate)
(can prefix any command with 'heroku run')
heroku run rails db:seed
(to seed)
12. look for asset directories.
assets get put into a directory called 'public'
need to use asset_url helper method to bind assets.