Run App producer on server
Run the process NON Stop. - Server Environment
The Expo CLI can work on Window, Mac, and Linux.
So it means that you can make apps from Linux Server.
Together with PM2 you can have a server that never stops.
Let's start.
Video
Create Server ( Example with CentOS 7 )
Step 1. Install Node, NPM, GIT, and EXPO
Install node and npm: Read about it here.
Install GIT: Read about it here.
Install Expo: Follow instructions.
Install PM2: Follow instruction.
Install mexpo-cli with the command
npm i -g mexpo-cli
To make your VPS handle more operations - Restart after that
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
Full list of command
To verify your installation run
node --version
npm --version
git --version
expo --version
pm2 --version
mexpo-cli --version
Clone or use our repository in Git Lab. If you don't have access, send us your purchase code and we will add it.
Connect to your server via ssh
Clone the repository in your server
Use tools like
nano
orvi
Configure Mobile App/Producer/config.js with your own data. Email, smtp etc.You should have also followed and completed the steps for the Local App producer. We need modified firebase_config.js file and service-account-file.json file.
Run
npm install
Run
expo login
and login with your account.
Now. Run the production script with npm run pmserver
The server producer is now up and running.
Last updated