twitter #2
@ -4,8 +4,8 @@ USER root
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN chmod u+x setup_core.sh
|
#RUN chmod u+x setup_core.sh
|
||||||
RUN bash setup_core.sh
|
#RUN bash setup_core.sh
|
||||||
RUN pip3 install -r requirements.txt
|
RUN pip3 install -r requirements.txt
|
||||||
EXPOSE 5000/udp
|
EXPOSE 5000/udp
|
||||||
EXPOSE 5000/tcp
|
EXPOSE 5000/tcp
|
||||||
|
@ -5,7 +5,7 @@ from twitter import twitter
|
|||||||
from twitter.models import twitter_db
|
from twitter.models import twitter_db
|
||||||
from campaign import campaign
|
from campaign import campaign
|
||||||
from campaign.models import campaign_db
|
from campaign.models import campaign_db
|
||||||
import pbrAyctCore.core as core
|
#import pbrAyctCore.core as core
|
||||||
|
|
||||||
def create_app():
|
def create_app():
|
||||||
app = Flask('ayct-backend')
|
app = Flask('ayct-backend')
|
||||||
@ -23,6 +23,6 @@ def create_app():
|
|||||||
|
|
||||||
@app.route('/hello')
|
@app.route('/hello')
|
||||||
def hello():
|
def hello():
|
||||||
return core.getTestString()
|
return "Hello world!"
|
||||||
|
|
||||||
return app
|
return app
|
Loading…
Reference in New Issue
Block a user