mirror of
https://github.com/YunoHost-Apps/flood_ynh.git
synced 2024-09-03 18:36:20 +02:00
Install new release for node & flood
This commit is contained in:
parent
410c43177d
commit
510b84116c
1 changed files with 3 additions and 13 deletions
|
@ -54,21 +54,11 @@ sudo chown -R flood:www-data $data_dir
|
||||||
sudo chmod 755 $data_dir
|
sudo chmod 755 $data_dir
|
||||||
|
|
||||||
# Install nodejs for flood
|
# Install nodejs for flood
|
||||||
curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
|
curl -sL https://deb.nodesource.com/setup_current.x | sudo -E bash -
|
||||||
sudo apt-get install -y nodejs
|
sudo apt-get install -y nodejs
|
||||||
|
|
||||||
# Clone flood
|
# Install flood
|
||||||
git clone https://github.com/jfurrow/flood.git /var/www/flood
|
sudo npm i -g flood
|
||||||
|
|
||||||
# Config flood
|
|
||||||
ynh_replace_string "PATH_URL" "$path_url" ../sources/config.js
|
|
||||||
sudo cp ../sources/config.js /var/www/flood/config.js
|
|
||||||
sudo chown -R flood:flood /var/www/flood/
|
|
||||||
|
|
||||||
# Compiling assets for Flood
|
|
||||||
cd /var/www/flood/
|
|
||||||
npm install
|
|
||||||
npm run build
|
|
||||||
|
|
||||||
# Launch flood on boot
|
# Launch flood on boot
|
||||||
cd $current_dir
|
cd $current_dir
|
||||||
|
|
Loading…
Add table
Reference in a new issue