Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
bdca0f1d
Commit
bdca0f1d
authored
Jul 12, 2013
by
Xavier Antoviaque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vagrant: Always mount `node_modules` folder after Vagrant NFS mount
parent
d6edbd5e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
+8
-1
scripts/vagrant-provisioning.sh
+8
-1
No files found.
scripts/vagrant-provisioning.sh
View file @
bdca0f1d
...
...
@@ -59,7 +59,14 @@ chown vagrant.vagrant ~vagrant/.ssh/known_hosts
# Node modules require a filesystem with symlinks (Windows support)
mkdir
-p
/opt/edx/node_modules /opt/edx/edx-platform/node_modules
mount
-o
bind
/opt/edx/node_modules /opt/edx/edx-platform/node_modules
([[
-f
/etc/fstab
]]
&&
grep
'/opt/edx/node_modules'
/etc/fstab
)
||
{
echo
'/opt/edx/node_modules /opt/edx/edx-platform/node_modules none bind,noauto 0 0'
>>
/etc/fstab
mount /opt/edx/node_modules
}
# Must be mounted *after* the NFS mount, made manually by Vagrant
([[
-f
/etc/cron.d/nodemodules
]]
&&
grep
'/opt/edx/node_modules'
/etc/cron.d/nodemodules
)
||
{
echo
'@reboot root until [ -n "`mount |grep "/opt/edx/edx-platform type"`" ]; do sleep 1; done; mount /opt/edx/node_modules'
>
/etc/cron.d/nodemodules
}
# Force rechecking all prerequisites (could have been fetched outside of the VM)
rm
-rf
/opt/edx/edx-platform/.prereqs_cache
...
...
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