I check on my service nginx status, but it seem like port id is invalid argument, and i can’t access the erpnext 10.168.2.177, anyone could help me on this? Urgent, i wasted a lot of time researching on convert development mode to production mode.
Could anyone please lend me a hand on this ? how to make development mode with supervisor and nginx, so that i can access the url and if the server down, it will restart it automatically (supervisor function)
I really waste a lot of time in setting up a production server,
currently i am using my own vm to do testing, i have completely changed all the code, however, i do not know how to create my own git remote repo, so that my real production server can using this command : bench get-app/install-app with local app folder (i aware of get-app only apply to remote repo).
Can you please guide me on this ? I really appreciate your help and sorry for causing any trouble to you.
Changing all the code without understanding the implications is asking for trouble. For example, how are you planning to handle any future bench updates?
Frappe team has a nice wiki(App Development using GitHub · frappe/frappe Wiki · GitHub) explaining the development process. In summary, I would probably do this:
Use ‘git status’ to check all the modified files
Think whether you can maintain all those changes accommodating the future upgrades
If you can, fork your clone and set that as development branch using ‘git remote’ command
Push the changes to your forked repository
On production, you can install erpnext from your fork rather than from frappe/erpnext
It has to be indicated in this document that install-app is the first command to run.
-----------------snippet from the site.-----------------
Setting up local access to your fork
When making changes to your local installation, you will need to be able to update the online repository so that you can push changes to Frappe / ERPNext, as well as keep revisions on GitHub, etc.
Access your local installation using a terminal and go to the frappe-bench folder
For each app you have forked, use the following commands to establish a remote to your fork:
cd apps/[app_name](How did the app come into existence in your instance?)
git remote add origin https://github.com/[username]/[app_name]
Use the following command (in each apps/app_name folder) to verify the remote has been added
git remote -v
-----------------snippet from the site.-----------------