Written with Python Flask Framework, if you want to port to PHP or Node.js, just change the templates in app/templates
folder.
- SSH Running from Mac or Linux console, use putty if you are on Windows:
ssh -i ~/PATH/TO/engeditorg.pem ubuntu@ec2-54-242-188-118.compute-1.amazonaws.com
Note that the engeditorg.pem
is located at Engedit\帐号信息\Amazon_aws_secret_key
-
Installation (if you haven't install python flask and its extensions) After you have logged in SSH,
pip install -r requirements.txt # install dependencies python manage.py db_create # create database python manage.py db_content # push some scheme into the database
-
Run
- Debug mode
sudo python manage.py run_debug &
- Production mode (using tornado to add more power to it)
sudo python manage.py runserver_production_tornado &
Try to run the code with
&
appended to the commend, to make it as a background process.
Two options:
- Use WinSCP to copy edited templates to the remote SSH server. Remember to use the
engeditorg.pem
as the ssh option. - Directly login with SSH and edit the file directly from SSH, using console text editor like Vim or Pico
How to locate the content of the page:
- Try to search by
grep
or other full text search tool to find content in the folderapp/templates
- Change the content if you like. Upload can be done with WinSCP.