зеркало из https://github.com/mozilla/bedrock.git
Fix NPM Cert Change: Update Node version to 10.26 reference http://blog.npmjs.org/post/78085451721/npms-self-signed-certificate-is-no-more
Change vagrant start command from vagrant up to vagrant up --provosion, new vagrant version does not provision by default, after a halt apache wont restart automagically.
This commit is contained in:
Родитель
8345d68817
Коммит
626278dc4b
|
@ -175,7 +175,7 @@ Start Your Machine
|
|||
directory that contains the Vagrantfile. ::
|
||||
|
||||
~$ cd bedrock
|
||||
~bedrock-legacy/bedrock$ vagrant up
|
||||
~bedrock-legacy/bedrock$ vagrant up --provision
|
||||
|
||||
.. note::
|
||||
The first time you run vagrant a VM image will be downloaded
|
||||
|
@ -253,12 +253,13 @@ Tips & Tricks
|
|||
|
||||
Start ::
|
||||
|
||||
~$ vagrant up
|
||||
~$ vagrant up --provision
|
||||
|
||||
Stop (vagrant is memory intensive - so if you are not using it best to stop it)::
|
||||
|
||||
~$ vagrant halt
|
||||
|
||||
|
||||
Troubleshooting
|
||||
---------------------
|
||||
Find us on irc in #webprod
|
||||
|
|
|
@ -6,64 +6,64 @@ class nodejs {
|
|||
package {
|
||||
["python", "g++", "make"]:
|
||||
ensure => installed,
|
||||
require => Exec['update_apt']
|
||||
}
|
||||
require => Exec['update_apt']
|
||||
}
|
||||
|
||||
file {'/src':
|
||||
ensure => directory,
|
||||
mode => 0644,
|
||||
}
|
||||
}
|
||||
|
||||
exec { "nodejs-download":
|
||||
command => "wget -N http://nodejs.org/dist/v0.10.13/node-v0.10.13.tar.gz",
|
||||
cwd => "/src/",
|
||||
command => "wget -N http://nodejs.org/dist/v0.10.26/node-v0.10.26.tar.gz",
|
||||
cwd => "/src/",
|
||||
timeout => 3600,
|
||||
unless => 'test -d /usr/local/bin/node',
|
||||
unless => 'test -d /usr/local/bin/node',
|
||||
require => [
|
||||
File['/src'],
|
||||
];
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
exec { "nodejs-extract":
|
||||
command => "tar xzvf node-v0.10.13.tar.gz",
|
||||
cwd => "/src/",
|
||||
unless => 'test -d /usr/local/bin/node',
|
||||
command => "tar xzvf node-v0.10.26.tar.gz",
|
||||
cwd => "/src/",
|
||||
unless => 'test -d /usr/local/bin/node',
|
||||
require => [
|
||||
File['/src'],
|
||||
Exec['nodejs-download']
|
||||
];
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
exec { "nodejs-configure":
|
||||
command => "sudo ./configure",
|
||||
cwd => "/src/node-v0.10.13/",
|
||||
unless => 'test -d /usr/local/bin/node',
|
||||
cwd => "/src/node-v0.10.26/",
|
||||
unless => 'test -d /usr/local/bin/node',
|
||||
require => [
|
||||
File['/src'],
|
||||
Exec['nodejs-download'],
|
||||
Exec['nodejs-extract']
|
||||
];
|
||||
}
|
||||
Exec['nodejs-extract']
|
||||
];
|
||||
}
|
||||
|
||||
exec { "nodejs-install":
|
||||
command => "sudo make install",
|
||||
cwd => "/src/node-v0.10.13/",
|
||||
cwd => "/src/node-v0.10.26/",
|
||||
timeout => 3600,
|
||||
unless => 'test -d /usr/local/bin/node',
|
||||
unless => 'test -d /usr/local/bin/node',
|
||||
require => [
|
||||
File['/src'],
|
||||
Exec['nodejs-download'],
|
||||
Exec['nodejs-extract'],
|
||||
Exec['nodejs-configure']
|
||||
];
|
||||
|
||||
}
|
||||
|
||||
];
|
||||
|
||||
}
|
||||
|
||||
#Install Less
|
||||
exec { "less-install":
|
||||
command => 'npm -g install less',
|
||||
unless => 'test -d /usr/local/bin/lessc',
|
||||
require => Exec['nodejs-install']
|
||||
}
|
||||
|
||||
require => Exec['nodejs-install']
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче