mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-08 18:22:40 +00:00
Rough draft of update.
This commit is contained in:
@@ -24,12 +24,14 @@ These instructions assume that you are installing to a completely new, fresh Ubu
|
|||||||
|
|
||||||
These installation instructions have been tested on the following Ubuntu releases:
|
These installation instructions have been tested on the following Ubuntu releases:
|
||||||
|
|
||||||
- *ubuntu-20.04.3-desktop-amd64*
|
- *ubuntu-24.04.1-desktop-amd64*
|
||||||
|
|
||||||
## Final Notes
|
## Final Notes
|
||||||
|
|
||||||
While this installation process works successfully at the time of writing (December 19, 2021), it relies on all of the Node.JS packages used in the HomeBrewery project retaining their cross-platform capabilities to continue to function. This is one of the inherent advantages of Node.JS, but it is by no means guaranteed and as such, functionality or even installation may fail without warning at some point in the future.
|
While this installation process works successfully at the time of writing (December 19, 2021), it relies on all of the Node.JS packages used in the HomeBrewery project retaining their cross-platform capabilities to continue to function. This is one of the inherent advantages of Node.JS, but it is by no means guaranteed and as such, functionality or even installation may fail without warning at some point in the future.
|
||||||
|
|
||||||
|
Earlier versions of Ubuntu may requier an alternate Mongo setup, see https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-ubuntu/ for assistance.
|
||||||
|
|
||||||
Regards,
|
Regards,
|
||||||
G
|
G
|
||||||
December 19, 2021
|
December 19, 2021
|
||||||
|
|||||||
@@ -3,7 +3,8 @@ Description=Homebrewery Web Server
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User=root
|
User=root
|
||||||
Requires=mongodb
|
BindsTo=mongod.service
|
||||||
|
After=mongod.service
|
||||||
Environment=NODE_ENV=local
|
Environment=NODE_ENV=local
|
||||||
WorkingDirectory=/usr/local/homebrewery
|
WorkingDirectory=/usr/local/homebrewery
|
||||||
ExecStart=node server.js
|
ExecStart=node server.js
|
||||||
|
|||||||
@@ -6,9 +6,21 @@ apt install -y curl
|
|||||||
echo ::Add NodeJS source to package repo
|
echo ::Add NodeJS source to package repo
|
||||||
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
|
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
|
||||||
|
|
||||||
|
# Add Mongo CE Source
|
||||||
|
echo ::Add Mongo CE source to package repo
|
||||||
|
curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | \
|
||||||
|
sudo gpg -o /usr/share/keyrings/mongodb-server-8.0.gpg \
|
||||||
|
--dearmor
|
||||||
|
echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg ] https://repo.mongodb.org/apt/ubuntu noble/mongodb-org/8.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-8.0.list
|
||||||
|
sudo apt-get update
|
||||||
|
|
||||||
# Install required packages
|
# Install required packages
|
||||||
echo ::Install Homebrewery requirements
|
echo ::Install Homebrewery requirements
|
||||||
apt satisfy -y git nodejs npm mongodb
|
apt satisfy -y git nodejs npm mongodb-org
|
||||||
|
|
||||||
|
# Enable and start Mongo
|
||||||
|
systemctl enable mongod
|
||||||
|
systemctl start mongod
|
||||||
|
|
||||||
# Clone Homebrewery repo
|
# Clone Homebrewery repo
|
||||||
echo ::Get Homebrewery files
|
echo ::Get Homebrewery files
|
||||||
@@ -23,9 +35,7 @@ npm audit fix
|
|||||||
npm run postinstall
|
npm run postinstall
|
||||||
|
|
||||||
# Create Homebrewery service
|
# Create Homebrewery service
|
||||||
echo ::Create Homebrewery service
|
echo ::Create systemctl daemon-reload
|
||||||
ln -s /usr/local/homebrewery/install/ubuntu/etc/systemd/system/homebrewery.service /etc/systemd/system/homebrewery.service
|
|
||||||
systemctl daemon-reload
|
|
||||||
echo ::Set Homebrewery to start automatically
|
echo ::Set Homebrewery to start automatically
|
||||||
systemctl enable homebrewery
|
systemctl enable homebrewery
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user