-
Notifications
You must be signed in to change notification settings - Fork 243
Creating a cloud development environment on c9
Roey Darwish Dror edited this page Sep 5, 2017
·
1 revision
-
Create an account at c9.io (preferably with github verification, but can also be done with a simple IP address
-
Create a new public python based project that receives code from https://github.com/hasadna/anyway repository
-
Preform git checkout dev After the Clone activity is completed (can take a few minutes) run the following:
- sudo pip install -r requirements.txt
- export DATABASE_URL='sqlite:///local.db'
- python models.py
- python process.py
-
Go to configurations page (using the top right configuration icon) go to the
Run Configuration
part and pressAdd New config
-
Do the following definitions on the window that just popped up:
- Definition Name - Anyway
- File to be run - main.py
- Press enter to save the setting.
- Environment variables - DATABASE_URL sqlite:///local.db (in two different colums)
-
Set this to be the default by selecting the definitions window and pressing
Set As Default
-
Run the environment by pressing
Run Application
and see it by pressingPreview
and thenPreview Running Application