Deploy to supabase cloud
Supabase Cloud
Supabase provides its own cloud services where you can deploy you local supabase setup along with the db migrations, storage and edge functions.
Setup
Follow these steps to setup your supabase cloud project:
- Create an account in supabase.
- Create an organization and add a new project in supabase dashboard.
- Login to supabase in your local system.
- Link your supabase project with your local setup
Deploy to Cloud
-
Push you local db with policies to the cloud
-
Push your storage with policies to the cloud. Supabase doesn’t inherently allow storage migrations to be pushed to the cloud, as it considers them seeds instead of db migration. Follow these steps :
-
If you’re using the default storage settings, you can copy this sql query.
-
Go to the dashboard of your project, Click on the
SQL Editor
on the sidebar. Paste the above content in there and click on run, it will setup your storages.
-
-
Deploy your edge functions to the cloud, this command with deploy all of your edge functions with a single command.