FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
JavaScript.com/setup.sh at master · alainyog/JavaScript.com · GitHub
alainyog
JavaScript.com
Repository navigation
Code
Pull requests
1
(1)
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
JavaScript.com
/
setup.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
16 lines (13 loc) · 365 Bytes
Breadcrumbs
JavaScript.com
/
setup.sh
Copy path
File metadata and controls
executable file
·
16 lines (13 loc) · 365 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#
How do we only run this if the javascriptcom database doesn't exist?
if
psql javascriptcom -c
'
\q
'
2>&1
then
#
The database exists
echo
"
javascriptcom database already loaded
"
else
createdb javascriptcom
./node_modules/node-pg-migrate/bin/pg-migrate up
fi
echo
"
installing bower assets
"
npm run bower install
echo
"
compiling assets
"
npm run gulp build
Back
|
FazBrowse Home
|
New Git URL