This project is configured to run as a Node.js application.
To deploy this Node.js application on Plesk, follow these steps:
- Install Node.js Extension: Ensure the Node.js extension is installed and enabled on your Plesk server.
- Add Application: In your Plesk control panel, navigate to your domain and add a new Node.js application.
- Configure Application Settings:
- Application Root: Set this to the directory containing your
package.jsonfile. For this project, it isd:/Site Projects/MarkedMuseLanding. - Document Root: This is typically the same as the Application Root for Next.js applications.
- Startup File: Specify the command to start your application. Use
npm run start(oryarn run startif you use Yarn). - Application Mode: Set this to
production.
- Application Root: Set this to the directory containing your
- Install Dependencies: After setting up the application in Plesk, navigate to the application's directory via SSH or the Plesk file manager and run
npm install(oryarn install) to install all project dependencies. - Build the Application: Run the build command to create production-ready assets:
npm run build(oryarn build). - Environment Variables: Configure any necessary environment variables within the Plesk interface for your Node.js application.
Note: The out directory, previously used for static site generation, has been removed as this project now runs as a Node.js application.