<commit_before>#!/bin/bash

echo "Pulling from repo..."

# Change directory to ../wdots-website
# (this dir change is only for the purpose of this script.. it is reverted when the script is over)
cd ../wdots-website

# Stop the wdots-website pm2 service
pm2 stop wdots-website

# Pull the changes from git
git pull

# Install npm dependencies
npm install

# Build the assets
npm run build

# Start index.js with the name wdots-website
pm2 start index.js --name wdots-website -- --port 80<commit_msg>Update pull script<commit_after>#!/bin/bash

echo "Pulling from repo..."

# Change directory to ../wdots-website
# (this dir change is only for the purpose of this script.. it is reverted when the script is over)
cd ../wdots-website

# Stop the wdots-website pm2 service
pm2 stop wdots-website

# Pull the changes from git
git pull

# Install npm dependencies
npm install

# Run "npm start --port 80" with pm2
pm2 start "/usr/local/bin/npm" --name wdots-website -- start --port 80
{'fraction_non_alphanumeric': 0.09397344228804903, 'fraction_numerical': 0.013278855975485188, 'mean_word_length': 3.4545454545454546, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1603424', 'n_tokens_mistral': 326, 'n_tokens_neox': 291, 'n_words': 135}