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

  1. Install node and npm: Read about it here.

  2. Install GIT: Read about it here.

  3. Install Expo: Follow instructions.

  4. Install PM2: Follow instruction.

  5. Install mexpo-cli with the command npm i -g mexpo-cli

  6. 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

yum -y update

yum install -y gcc-c++ make

curl -sL https://rpm.nodesource.com/setup_12.x | sudo -E bash -                        
                                                                                                      
yes Y | sudo yum install nodejs -y                                                                                                                                                                                                                                                                    
                                                                                                      
yes Y | npm install -g --unsafe-perm --verbose expo-cli  -y      
                                                                                                      
yes Y | npm install pm2 -g   -y

yes Y | yum -y install git -y
                                                                                                      
yes Y | npm install -g --unsafe-perm --verbose mexpo-cli -y

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

source ~/.bashrc   

To verify your installation run

  • node --version

  • npm --version

  • git --version

  • expo --version

  • pm2 --version

  • mexpo-cli --version

  1. Clone or use our repository in Git Lab. If you don't have access, send us your purchase code and we will add it.

  2. Connect to your server via ssh

  3. Clone the repository in your server

  4. Use tools like nano or vi Configure Mobile App/Producer/config.js with your own data. Email, smtp etc.

  5. 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.

  6. Run npm install

  7. 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