![]() Virtual Host Root: $SERVER_ROOT/yourdomain/.Set the following values (being sure to replace yourdomain with your actual domain name) and click Save: Open a new browser window and type in the following URL to log into the WebAdmin Console: On the login page, type in your WebAdmin Console password, navigate to Configuration > Virtual Hosts, and click Add. LiteSpeed Web Server can also be implemented as a reverse proxy server for websites and web applications to help increase security, performance, and reliability. A reverse proxy is a server that sits in front of a web server and forwards client requests to that web server. The final step is to configure LiteSpeed Web Server as a reverse proxy for Sails.js. It should show that the service is active (running) as shown in the output below:Ĭonfigure LitesSpeed Web Server as a reverse proxy for Sails.js If you have configured everything correctly, run the following command to check the status of the Sails.js service: systemctl status sails You can now start the Sails.js service and enable it to start at system reboot: systemctl start sails Save and close the file then reload the systemd daemon to apply the changes: systemctl daemon-reload WorkingDirectory=/newproject/softwareproject Run the following command to create the service file: nano /lib/systemd/system/rviceĪdd the following configuration into this file: You can start, stop, and restart the Sails.js app using systemctl. The systemd file will help to ensure that the Sails.js app can start up automatically at system reboot. You now need to create a systemd configuration file that will help you to manage your Sails.js application. To shut down sails, press + C at any time.Ĭreate a Systemd service file for the Sails.js app that you have created Server lifted in ‘/newproject/softwareproject’ Run the following commands to start the Sails application: cd softwareproject The directory is given the name of the app that you specified in the sails new command. ![]() Once the Sails.js installation process is complete, an application directory will be created. Sails.js will now start to download dependencies and software components needed by your app. Type 2 and press Enter to start the Sails.js app installation process. You will be asked to choose a template for your Sails application: Run the following commands to do this: cd newproject You now need to change into the directory and create a new Sails app. This will create a new directory named newproject Once the installation is complete, you can simply create a project folder by running the command: mkdir newproject Run the following command to kick start the install: npm -g install sails ![]() Sails.js can be easily installed using the npm package manager for JavaScript. Run the following commands to install dependencies, add the Node.js repository to your server, and install Node.js: apt-get install curl wget gnupg2 -yĬheck and verify the version of Node.js that is now running on your server by running the command: node -version Install Sails.js Install the Sails.js framework Install Node.jsīefore you install Sails.js, Node.js must be installed on the server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |