Virtual Private Server (Automated Script)
With this tutorial, you can install Pixer to any type of blank or empty ubuntu server. For example, Digital Ocean Droplets, Amazon Lightsail, AWS, Google Cloud Virtual Private Server, Azure Ubuntu Virtual Private Server
, etc.
If you want to use all the scripts (
shop
,admin
,api
) on the same server as this tutorial, then we recommend creating a blank ubuntu-based (v20.0.4 lts
) server with at least 2+ CPU cores and 2GB+ memory.
Please connect your
domain
withserver
. We don't recommend/support deployment the project viaIP
.
Please follow this video with the documentation, and it'll make the installation process relatively easy.
Prerequisite
This automated script is for the *nix system. So if you are using mac or Linux, then you're good to go. But if you are using windows, then install WSL on your computer and use this script using WSL or follow this manual installation
Before starting, the procedure ensures that NodeJS 20 (the latest) is installed on your computer.
npm i -g yarn zx
Now you can follow the script installation procedure,
At first login your server from terminal
ssh SERVER_USERNAME@SERVERIP
Make sure that you are logged in your server then follow the next step and run suggested command.
Upload api and deployment project to Virtual Server form your PC - RUN on Local PC
To upload the zipped pixer-api
and deployment
files to server you need to run the below command form your pixer project root
while running below command you will asked for enter your server
username
andip address
by entering and a successful connection you will also asked for enter yourpixer-api.zip
anddeployment.zip
files path and the path will be look like/home/your_project_folder_path/pixer-laravel/pixer-api.zip
for pixer-api.zip file so forth fordeployment.zip
bash deployment/deployment.sh
Then login your server using ssh
and,
Server Environment setup script - RUN on Virtual Server
bash /var/www/pixer-laravel/deployment/nodesetup.sh
Nginx Setup And Settings - RUN on Virtual Server
zx /var/www/pixer-laravel/deployment/setenv.mjs
Backend build - RUN on Virtual Server
sudo zx /var/www/pixer-laravel/deployment/backendbuildscript.mjs
Frontend build script - RUN on Local PC
Run the below command from your pixer-laravel project root
zx deployment/frontendbuildscript.mjs
Frontend run script - RUN on Virtual Server
zx /var/www/pixer-laravel/deployment/frontendrunscript.mjs