Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CRIO_BYTES
ME_NODEJS_MONGODB
Commits
651d9a85
Commit
651d9a85
authored
4 years ago
by
Nabhan Abdulla P V
💬
Browse files
Options
Download
Email Patches
Plain Diff
[Frontend/] Add setup script
parent
1a55445c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
Frontend/setup.sh
Frontend/setup.sh
+15
-0
No files found.
Frontend/setup.sh
0 → 100644
View file @
651d9a85
# Store workspace public IP to config file
IP_VAR
=
"
$(
curl http://checkip.amazonaws.com/
)
"
CONFIG
=
'{"workspaceIp": "'
"
$IP_VAR
"
'"}'
echo
$CONFIG
>
src/ipConfig.json
# CRIO_SOLUTION_AND_STUB_END_MODULE_LOGIN
# Install project dependencies
rm
-rf
~/node_modules
rm
-rf
node_modules
rm
-rf
~/.npm
rm
package-lock.json
mkdir
-p
~/node_modules
ln
-s
/home/crio-user/node_modules
$PWD
/node_modules
npm
install
npm start
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment