Custom app installation in frappe cloud

Hi,

  1. Created a custom app using bench command, assigned to site.
  2. when I execute "bench make-module your_module_name
    " for creating doctypes it says, command not found.

i would like to build custom app with doctypes, push it to Git and then install it to frappe cloud.

I am using frappe v15.
some articles says its deprecated after v13. in such case, how do I build the doctypes?

https://docs.frappe.io/framework/user/en/tutorial/create-an-app

I followed this. Not getting where do I create doctypes?
On frappe desk?
if yes, how do I check-in those doctypes created to github under the same custom-app so that i can install the same custom-app to other/new sites?

Make sure you are in a dev environment. You can not create a dev environment in frappe cloud

I just posted on how to setup a dev environment using docker check:

To create an app

bench new-app myapp

Then set your default development site

bench use dev.localhost (or whatever your dev site is)

Then

bench install-app myapp

Then

bench update

After creating your app, make sure developer mode is on then create doctypes where module = your app then they will be automatically added to

yourapp > yourapp > yourapp > doctype

To enable developer mode

https://docs.frappe.io/framework/user/en/guides/app-development/how-enable-developer-mode-in-frappe

Once you are done developing

  1. Push your app to github
  2. In your frappe cloud bench install the app using github
  3. Install the app on your site

If you push new updates to your app

  1. In frappe cloud benches wherever your app is installed, click on the vertical dots and fetch updates
  2. Update and deploy on your site
1 Like

Thanks a ton.
It worked.

Now I released a 1st version of the app and able to install the custom app on any site.

But here is a challenge I’m facing
If I make changes to custom app in dev environment and check in the code to git,
Frappe is expecting me to run “bench migrate” by doing ssh to site’s instance.

Any better way of automating this, wherein as soon as new code/updates are available and installed, it should run ‘bench migrate’ automatically.