in This Tutorial you will learn " How To Deploy Solidjs/solid With Apache Proxy On Rocky Linux 8.5"
Solid is a fast, declarative JavaScript library for creating user interfaces in web applications.
Apache is the most widely used web server software.
Homepage - https://www.solidjs.com/ | Gihtub :- https://github.com/solidjs/solid
Guide - https://www.solidjs.com/guides/getting-started
_________________________________________________________________________________________
Server - Os: Rocky Linux 8.5 64Bit | IP -192.168.1.60 |Hostname - server.yourdomain.com
_________________________________________________________________________________________
cat /etc/system-release ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf module enable nodejs:14 -y ; dnf install nodejs npm -y
npx degit solidjs/templates/js my-app
cd my-app
npm i
npm run dev
http://localhost:3001/
TypeScript:-
npx degit solidjs/templates/ts my-app
cd my-app
npm i
npm run dev
http://localhost:3001/
_________________________________________________________________________________________
Deploy Solidjs/solid With Apache-
nano /lib/systemd/system/solidjs.service
[Unit]
After=network.target
[Service]
Type=simple
User=root
WorkingDirectory=/root/my-app
ExecStart=/usr/bin/npm run dev
Restart=on-failure
[Install]
WantedBy=multi-user.target
systemctl daemon-reload ; systemctl start solidjs ; systemctl enable solidjs ; systemctl status solidjs
dnf install httpd -y
nano /etc/httpd/conf.d/example.conf
<VirtualHost *:80>
ServerAdmin admin@example.com
ServerName www.example.com
ErrorLog /var/log/httpd/error.log
CustomLog /var/log/httpd/access.log combined
ProxyRequests On
ProxyPass / http://127.0.0.1:3000/
ProxyPassReverse / http://127.0.0.1:3000/
</VirtualHost>
apachectl configtest
systemctl start httpd ; systemctl enable httpd ; systemctl status httpd
echo "192.168.1.60 www.example.com" >> /etc/hosts
firewall-cmd --permanent --add-service={http,https} ; firewall-cmd --reload
www.example.com
---------------------------------------------------------------------------------------------------------------------------------------------------------
Friday, February 4, 2022
How To Deploy Solidjs/solid With Apache On Rocky Linux 8.5
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment