React App Builder
  • React App Builder Docs
  • Web Platform
    • Install the WEB PLATFORM
    • Firebase Account setup
    • Paddle Account
  • App Producer
    • APP PRODUCER TYPES
  • Local
    • Environment Setup
    • Setup App Producer
    • Run App Producer locally
  • Server
    • Run App producer on server
  • Advance Configurations
    • Clone our docs
    • Make iPhone App for my Clients
    • Manual - Bank transfers from my clients
    • Translate my app builder site
    • Run the app builder locally
  • Common Problems
    • Can't log in, stays on the login screen
    • Error shows: You don't have Item Purchase
    • Stuck on App Prioducer
  • Plugins
    • Landing Page
    • App preview app
  • FAQ
    • FAQ
    • Changelog
    • How we can help you best.
Powered by GitBook
On this page
  • Run the process NON Stop. - Server Environment
  • Video

Was this helpful?

  1. Server

Run App producer on server

PreviousRun App Producer locallyNextClone our docs

Last updated 5 years ago

Was this helpful?

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 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 mexpo-cli with the command npm i -g mexpo-cli

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

  1. Make sure you have configured Mobile App/Producer/config.js with your own data. Email, smtp etc.

  2. You should have also followed and completed the steps for the Local App producer. We need modified firebase_config.js file and services_account json file.

  3. You will need to upload the code on some GIT platform like GitLab, GitHub or BitBucket. Initialize your local Mobile App folder.

  4. Connect via SSH to your VPS

  5. Clone the code from your repository.

  6. Go inside your cloned code

  7. Run npm install

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

Install node and npm: Read about it .

Install GIT: Read about it .

Install Expo: Follow .

Install PM2: Follow .

here
here
instructions
instruction
PM2